Skip to content
Snippets Groups Projects
Commit d8cf2d31 authored by lh1008's avatar lh1008 💬
Browse files

First Welcome message bot start-command

parent d8eb9478
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
""" Module that displays first start bot message """
import logging
from telegram.ext import CommandHandler
from telegram.ext import Update
updater = Updater(token='', use_context=True)
dispatcher = updater.dispatcher
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)
def start(update, context):
""" Method to send start message """
context.bot.send_message(chat_id=update.effective_chat.id, text="I'm moneroJobsBot, we're building!")
start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)
updater.start_polling()
update.stop()
if __name__ == "__main__":
start()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment