Skip to content

Commit

Permalink
The first version
Browse files Browse the repository at this point in the history
  • Loading branch information
slaveeks committed Apr 1, 2021
0 parents commit bb050e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions module.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from telegram.ext import Updater, CommandHandler
import logging
TOKEN = 'TOKEN'
updater = Updater(token=TOKEN)
dispatcher = updater.dispatcher
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)
def start(update, context):
context.bot.send_message(chat_id=update.effective_chat.id, text="Я активировался")
start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)
updater.start_polling()
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Telegram-bot

My first bot

0 comments on commit bb050e6

Please sign in to comment.