Santim / app.py
Seraph19's picture
Create app.py
ea4b4a9 verified
raw
history blame
652 Bytes
from telegram.ext import Updater, CommandHandler
# Telegram Bot Token from BotFather
TOKEN = '7322594950:AAFS4FOOYCdDnJy6VZUM4-6T86_mA18pxjQ '
def start(update, context):
update.message.reply_text('Welcome to the SANTIM Bot!')
def distribute(update, context):
# Token distribution logic here
update.message.reply_text('Your token has been sent!')
def main():
updater = Updater(TOKEN, use_context=True)
dp = updater.dispatcher
dp.add_handler(CommandHandler("start", start))
dp.add_handler(CommandHandler("distribute", distribute))
updater.start_polling()
updater.idle()
if __name__ == '__main__':
main()