Skip to content

Instantly share code, notes, and snippets.

@rojvv
Last active December 28, 2022 08:49
Show Gist options
  • Save rojvv/b5d1f3379c79585a99069644f082b01a to your computer and use it in GitHub Desktop.
Save rojvv/b5d1f3379c79585a99069644f082b01a to your computer and use it in GitHub Desktop.
یەکەم بۆتی تەلەگرامت بە پایسۆن
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