Skip to content

Fix for breaking telepot changes #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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