bot.cancel_membership Module¶
This module contains functions for canceling the membership.
- bot.cancel_membership.CANCEL_MEMBERSHIP_HANDLER = <telegram.ext.conversationhandler.ConversationHandler object>¶
Handler used to allow users to cancel their membership.
- bot.cancel_membership.CONFIRMATION = 'CONFIRMATION'¶
State of the conversation in which the cancellation is to be confirmed.
- Type
- bot.cancel_membership.CONFIRMATION_TEXT = 'Oooh, Så svinge vi på seidelen igen ... Skål!'¶
The text used to confirm the cancellation.
- Type
- bot.cancel_membership.CONVERSATION_INTERRUPT_TEXT = 'Hey! Entscheid Dich erst einmal, ob Du noch angemeldet bleiben möchtest, bevor Du etwas anderes versuchst. 🙄 '¶
Message to send, if the user tries to interrupt this conversation.
- Type
- bot.cancel_membership.CONVERSATION_VALUE = 'cancelling_membership'¶
The value of
context.user_data[CONVERSATION_KEY]
if the user is in a membership cancellation conversation.- Type
- bot.cancel_membership.ask_for_confirmation(update, context)¶
Requests the user to confirm the cancellation request and informs them on what a cancellation will mean for them.
- Parameters
update (
Update
) – The update.context (
CallbackContext
) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type
- bot.cancel_membership.cancel_cancellation(update, context)¶
Cancels the cancellation.
- Parameters
update (
Update
) – The update.context (
CallbackContext
) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type
- bot.cancel_membership.confirm(update, context)¶
Deletes the member and confirms the cancellation.
- Parameters
update (
Update
) – The update.context (
CallbackContext
) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type