daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top