Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import config
- import telepot
- basic_auth = ('tgfree_user', 'laip3Ez6')
- SetProxy = telepot.api.set_proxy("http://140.82.37.240:10080", basic_auth)
- bot = telepot.Bot(config.token)
- bot.getMe()
- import config
- import telebot
- bot = telebot.TeleBot(config.token)
- @bot.message_handler(commands=["start"])
- def repeat_all_messages(message): # Название функции не играет никакой роли, в принципе
- bot.send_message(message.chat.id, "Pkjhj")
- if __name__ == '__main__':
- bot.polling(none_stop=True, timeout=523)
Add Comment
Please, Sign In to add comment