A simple Telegram Bot
bot
: A telepot bot.
handle_message
: Handles a chat message
handle_private_message
: Handles private messages
handle_group_message
: Handles group messages
# First of all create a telepot Bot.
bot = telepot.Bot("TOKEN")
# Then create a TelegramBot
t_bot = TelegramBot(bot)
# Then run telegram Bot
t_bot.run_bot()
Override handle_group_message
to handle group message your way and
handle_private_message
to handle private message your way