Пример #1
0
 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"
                 }
             }
         }
     }
Пример #2
0
 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(
     )
Пример #3
0
 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()
Пример #4
0
 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(
     )
Пример #5
0
 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)
Пример #6
0
 def __init__(self):
     self.bot_variables = BotVariables()
     self.strava_telegram_webhooks_resource = StravaTelegramWebhooksResource(
     )
 def __init__(self):
     self.bot_variables = BotVariables()
Пример #8
0
 def __init__(self):
     self.bot_variables = BotVariables()
     self.bot_constants = BotConstants()
     self.host = self.bot_variables.api_host