MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / deep_linked_level_1

Function deep_linked_level_1

examples/deeplinking.py:61–71  ·  view source on GitHub ↗

Reached through the CHECK_THIS_OUT payload

(update: Update, context: ContextTypes.DEFAULT_TYPE)

Source from the content-addressed store, hash-verified

59
60
61async 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
74async def deep_linked_level_2(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:

Callers

nothing calls this directly

Calls 3

reply_textMethod · 0.80
from_buttonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…