MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / handle

Function handle

examples/webhook_examples/webhook_aiohttp_echo_bot.py:43–50  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

41
42# Process webhook calls
43async def handle(request):
44 if request.match_info.get('token') == bot.token:
45 request_body_dict = await request.json()
46 update = telebot.types.Update.de_json(request_body_dict)
47 bot.process_new_updates([update])
48 return web.Response()
49 else:
50 return web.Response(status=403)
51
52
53app.router.add_post('/{token}/', handle)

Callers

nothing calls this directly

Calls 4

jsonMethod · 0.80
getMethod · 0.45
de_jsonMethod · 0.45
process_new_updatesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…