1
0
Fork 0
mirror of https://github.com/adnanh/webhook.git synced 2026-01-23 18:34:49 +00:00
webhook/.github
Assalom605 dccf2f65f3 from telegram import Update
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()
2024-11-10 20:05:00 +00:00
..
workflows Add option to bind to a Unix socket instead of a TCP port (#703) 2024-10-25 09:38:22 +02:00
FUNDING.yml Update FUNDING.yml 2023-10-05 20:38:29 +02:00
ISSUE_TEMPLATE.md Added .github/ISSUE_TEMPLATE.md (optional) 2017-09-19 17:54:19 -04:00
telegram from telegram import Update 2024-11-10 20:05:00 +00:00