Reached through the CHECK_THIS_OUT payload
(update: Update, context: ContextTypes.DEFAULT_TYPE)
| 59 | |
| 60 | |
| 61 | async def deep_linked_level_1(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
| 62 | """Reached through the CHECK_THIS_OUT payload""" |
| 63 | bot = context.bot |
| 64 | url = helpers.create_deep_linked_url(bot.username, SO_COOL) |
| 65 | text = ( |
| 66 | "Awesome, you just accessed hidden functionality! Now let's get back to the private chat." |
| 67 | ) |
| 68 | keyboard = InlineKeyboardMarkup.from_button( |
| 69 | InlineKeyboardButton(text="Continue here!", url=url) |
| 70 | ) |
| 71 | await update.message.reply_text(text, reply_markup=keyboard) |
| 72 | |
| 73 | |
| 74 | async def deep_linked_level_2(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…