|
29 | 29 | class telegramHandler (threading.Thread):
|
30 | 30 |
|
31 | 31 | def register(self, update, context):
|
32 |
| - context.bot.send_message(chat_id=update.message.chat_id, text="Hello, " + update.message.from_user.first_name + ". I can request the number of changes for OSM users. Just send me a message saying /stats. Add OSM users by writing a /follow message, or remove them by writing /unfollow") |
| 32 | + context.bot.send_message(chat_id=update.message.chat_id, text="Hello, " + update.message.from_user.first_name + ". I can request the number of changes for OSM users. Just send me a message saying /report. Add OSM users by writing a /follow message, or remove them with /unfollow") |
33 | 33 | databaseHandler.addUser(update.message.from_user.name,update.message.chat_id)
|
34 | 34 |
|
35 | 35 | def stop(self, update, context):
|
@@ -85,7 +85,7 @@ def cancel(self, update, context):
|
85 | 85 | )
|
86 | 86 | return ConversationHandler.END
|
87 | 87 |
|
88 |
| - def stats(self, update, context): |
| 88 | + def report(self, update, context): |
89 | 89 | stats = databaseHandler.getStats(update.message.from_user.name)
|
90 | 90 | if stats == "":
|
91 | 91 | stats = "You need to follow OSM users by writing a /follow message first."
|
@@ -177,8 +177,8 @@ def run(self):
|
177 | 177 | unfollow_handler = CommandHandler('unfollow', self.unfollow, pass_args=True)
|
178 | 178 | self.dispatcher.add_handler(unfollow_handler)
|
179 | 179 |
|
180 |
| - stats_handler = CommandHandler('stats', self.stats, pass_args=True) |
181 |
| - self.dispatcher.add_handler(stats_handler) |
| 180 | + report_handler = CommandHandler('report', self.report, pass_args=True) |
| 181 | + self.dispatcher.add_handler(report_handler) |
182 | 182 |
|
183 | 183 | echo_handler = MessageHandler(Filters.text, self.echo)
|
184 | 184 | self.dispatcher.add_handler(echo_handler)
|
|
0 commit comments