Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def report_L1():
- chat_id = 229320588
- pdf = open('c:/bla/bla/otchet.pdf', 'rb')
- bot.send_document(chat_id, pdf)
- bot.send_document(chat_id, "FILEID")
- schedule.every(10).seconds.do(report_L1)
- bot.polling(none_stop=True)
- while True:
- schedule.run_pending()
- time.sleep(1)
Add Comment
Please, Sign In to add comment