Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions servstatsbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def plotmemgraph(memlist, xaxis, tmperiod):

class YourBot(telepot.Bot):
def handle(self, msg):
content_type, chat_type, chat_id = telepot.glance2(msg)
content_type, chat_type, chat_id = telepot.glance(msg)
# Do your stuff according to `content_type` ...
# print(chat_id)
if chat_id in adminchatid: # Store adminchatid variable in tokens.py
Expand Down Expand Up @@ -151,7 +151,7 @@ def handle(self, msg):
TOKEN = telegrambot

bot = YourBot(TOKEN)
bot.notifyOnMessage()
bot.message_loop(bot.handle)
tr = 0
xx = 0
# Keep the program running.
Expand Down