def __init__(self, bot, update, user_data): self.bot = bot self.update = update self.user_data = user_data self.bot_constants = BotConstants() self.bot_variables = BotVariables() self.query = self.update.callback_query self.chosen_option = self.query.data self.chat_id = self.query.message.chat_id self.message_id = self.query.message.message_id self.telegram_username = self.query.message.chat.username self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource( ) self.approve_payment_config = { "bot": {}, "challenges": { "cadence90": { "odd": { "column_name": "odd_challenges" }, "even": { "column_name": "even_challenges" } } } }
def __init__(self, bot, update, args): self.bot = bot self.update = update self.args = args self.bot_constants = BotConstants() self.bot_variables = BotVariables() self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource( )
def __init__(self, bot, update, user_data, chosen_option): self.bot = bot self.update = update self.user_data = user_data self.bot_constants = BotConstants() self.query = self.update.callback_query self.chosen_option = chosen_option self.chat_id = self.query.message.chat_id self.message_id = self.query.message.message_id self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource( )
def __init__(self, bot, update, user_data): self.bot = bot self.update = update self.user_data = user_data self.bot_variables = BotVariables() self.bot_constants = BotConstants() self.telegram_user_first_name = self.update.message.from_user.first_name self.telegram_username = self.update.message.from_user.username self.command = self.update.message.text self.chat_id = update.message.chat_id self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource()
def __init__(self, bot, update, user_data): self.bot = bot self.update = update self.user_data = user_data self.bot_variables = BotVariables() self.bot_constants = BotConstants() self.telegram_user_first_name = self.update.message.from_user.first_name self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource( ) self.aes_cipher = AESCipher(self.bot_variables.crypt_key_length, self.bot_variables.crypt_key) self.telegram_username = self.update.message.from_user.username self.chat_id = self.update.message.chat_id self.athlete_details = None self.registration = HandleRegistration(self.bot, self.update, self.user_data)
def __init__(self): self.bot_variables = BotVariables() self.bot_constants = BotConstants() self.host = self.bot_variables.api_host
def __init__(self, update): self.update = update self.bot_constants = BotConstants()