Skip to content

Commit

Permalink
Update Telegram_poster.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UngeheurenUngeziefer authored Jun 23, 2020
1 parent 18cd427 commit d9be667
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Telegram_poster.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
chat_id = '-1001200942722'

# creating list of addresses to all imgs
def img_path():
def img_path(message):
content_type, chat_type, chat_id_console = telepot.glance(message)
print(content_type, chat_type, chat_id_console)
path = 'C:/Users/sewer/MyPython/Pepe_project/downloads'
img_list = []
addresses_list = []
Expand All @@ -40,4 +42,10 @@ def img_path():
print('Too Many Requests')
continue

img_path()
MessageLoop(PosterBot, img_path).run_as_thread()
print('Listening ...')

while 1:
sleep(10)


0 comments on commit d9be667

Please sign in to comment.