Guest User

Untitled

a guest
Jul 12th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import config
  2. import telepot
  3.  
  4.  
  5. basic_auth = ('tgfree_user', 'laip3Ez6')
  6. SetProxy = telepot.api.set_proxy("http://140.82.37.240:10080", basic_auth)
  7. bot = telepot.Bot(config.token)
  8.  
  9. bot.getMe()
  10.  
  11. import config
  12. import telebot
  13.  
  14. bot = telebot.TeleBot(config.token)
  15.  
  16. @bot.message_handler(commands=["start"])
  17. def repeat_all_messages(message): # Название функции не играет никакой роли, в принципе
  18. bot.send_message(message.chat.id, "Pkjhj")
  19.  
  20.  
  21. if __name__ == '__main__':
  22. bot.polling(none_stop=True, timeout=523)
Add Comment
Please, Sign In to add comment