Skip to content

asundukov/meme-gen-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meme-gen-bot

Service can run multiple telegram bots, which place meme-gen-bots .

Based on Kotlin telegram bot framework

Running

As a standart Spring Boot appliactoin

Usage

  1. Create telegram bot at https://t.me/BotFather.
  2. Add bot via HTTP API or directly to db table bot (you need token bot)
  3. Add meme images via HTTP API or direcly to db table + copy it to ./memes/<meme_id>.jpg
  4. Place text-areas on your images
  5. Use it in telegram according help-article direclty in bot chat or via inline mode

Software dependencies

  1. Java 11+
  2. PostgreSQL

Java dependencies

  1. Kotlin
  2. Spring boot 2+
  3. Flyway db

Licence

Apache 2.0

API

//TODO: place API examples

Create db schema example

CREATE ROLE memegen PASSWORD 'memegen' LOGIN;
CREATE schema memegen;
GRANT ALL PRIVILEGES ON SCHEMA memegen TO memegen;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA memegen TO memegen;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA memegen TO memegen;
ALTER ROLE memegen SET search_path=memegen;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages