should stop the bot :param update: :param context: :return:
(self, update, context)
| 207 | ) |
| 208 | |
| 209 | def _stop(self, update, context): |
| 210 | """ |
| 211 | should stop the bot |
| 212 | :param update: |
| 213 | :param context: |
| 214 | :return: |
| 215 | """ |
| 216 | self.__chat_id = update.message.chat_id |
| 217 | if self._check_authorized(update, context): |
| 218 | self.instapy_session.aborting = True |
| 219 | context.bot.send_message( |
| 220 | chat_id=update.message.chat_id, text="InstaPy session abort set\n" |
| 221 | ) |
| 222 | |
| 223 | def _unknown(self, update, context): |
| 224 | """ |
nothing calls this directly
no test coverage detected