MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / _stop

Method _stop

instapy/plugins/telegram_util.py:209–221  ·  view source on GitHub ↗

should stop the bot :param update: :param context: :return:

(self, update, context)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

_check_authorizedMethod · 0.95
send_messageMethod · 0.80

Tested by

no test coverage detected