Handling files in Telegram bots: getFile, file_id reuse and size limits
How a Telegram bot receives, downloads and sends files with the Bot API: getFile and its 20 MB download limit, reusing file_id instead of re-uploading, the upload limits by method, and when a local Bot API server makes sense.
Validating Telegram Mini App initData on your server
A Telegram Mini App hands your page a signed initData string. Learn how to check its HMAC with your bot token, reject stale sessions with auth_date, and never trust initDataUnsafe.
Telegram bot commands menu: setMyCommands, scopes and languages
Set the / command menu with setMyCommands, show different commands to admins and groups with scopes, and translate the list by language, while still validating every command on your server.
Telegram deep links: the start parameter for onboarding and account linking
Use t.me links with start, startgroup and startapp parameters to route new users, link accounts safely and add your bot to groups with the right admin rights.
Log in with Telegram on your website: the OpenID Connect flow
Let users sign in to your bot's website with their Telegram account using the current OpenID Connect flow, and verify every ID token on the server.
Prefer HTML parse mode for user content on Telegram
MarkdownV2 escaping is easy to get wrong with user text.