Browse Source

Initial commit set up from template

dev
Markus 2 years ago
commit
8c89bf3669
  1. 3
      .gitignore
  2. 3
      README.md
  3. 10
      dockerfile
  4. 13
      run.py

3
.gitignore

@ -0,0 +1,3 @@
.idea
env-list

3
README.md

@ -0,0 +1,3 @@
# Font-Magier
This python-telegram-bot gives quick access to fancy fonts.

10
dockerfile

@ -0,0 +1,10 @@
FROM python:3.7.2
WORKDIR /usr/src/app
RUN pip install python-telegram-bot
COPY run.py .
ENTRYPOINT [ "python", "/usr/src/app/run.py" ]

13
run.py

@ -0,0 +1,13 @@
API_KEY = environ['API_KEY']
updater = Updater(token=API_KEY)
dispatcher = updater.dispatcher
def commandStart(bot, update): # This function says Hello World
bot.send_message(chat_id=update.messaga.chat_id, text="Hello World!")
dispatcher.add_handler(CommandHandler("start", commandStart)) # This Handler reacts to the input '/start'
updater.start_polling()
updater.idle()
Loading…
Cancel
Save