File size: 652 Bytes
ea4b4a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()