Last active
December 28, 2022 08:49
-
-
Save rojvv/b5d1f3379c79585a99069644f082b01a to your computer and use it in GitHub Desktop.
یەکەم بۆتی تەلەگرامت بە پایسۆن
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
def start(update, context): | |
update.message.reply_text( | |
"تۆ منت دەست پێ کرد!" | |
) | |
def echo(update, context): | |
update.message.reply_text( | |
"تۆ وتت: {}".format( | |
update.message.text | |
) | |
) | |
updater = Updater("تۆکنەکەت لێرە دابنێ.") | |
dispatcher = updater.dispatcher | |
dispatcher.add_handler(CommandHandler("start", start)) | |
dispatcher.add_handler(MessageHandler(Filters.text & ~ Filters.command, echo)) | |
updater.start_polling() | |
updater.idle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment