mirror of
https://github.com/adnanh/webhook.git
synced 2026-01-23 18:34:49 +00:00
from telegram.ext import Updater, CommandHandler, CallbackContext
TOKEN = '7657310609:AAEJVfKl0qJ0sR2MPm_rPvgxCZ4yX1pZj0w'
def start(update: Update, context: CallbackContext):
update.message.reply_text('Salom! Men Telegram botiman.')
# Botni ishga tushurish
def main():
updater = Updater(TOKEN, use_context=True)
dispatcher = updater.dispatcher
# /start komandasini qayta ishlash
dispatcher.add_handler(CommandHandler("start", start))
# Botni ishga tushirish
updater.start_polling()
updater.idle()
if __name__ == '__main__':
main()
|
||
|---|---|---|
| .. | ||
| workflows | ||
| FUNDING.yml | ||
| ISSUE_TEMPLATE.md | ||
| telegram | ||