Telegram APIs
How to register a user’s phone to start using the API.
Доставка товаров из США в Украину
Начните экономить до 80% на шопинге. Регистрируйтесь в Бандерольке, чтобы покупать со скидками в США одежду, обувь, гаджеты известных брендов и безопасно отправлять вещи в Украину.
Каждую пятницу в Бандерольке – Белая пятница! Самые выгодные предложения на одной странице
Бесплатный обучающий курс
Узнайте всё о шопинге вместе с Бандеролькой! 10 уроков: реальные примеры и лайфхаки.
Обновление Гаражной распродажи и скидки до 100% на доставку!
Зарабатывай вместе с Бандеролькой
Получите $5 за первую посылку своего друга и по $1 за следующие! Подробнее
Оплачивать пошлину просто!
Рассказываем про таможенные лимиты, расчет пошлины и способы оплаты.
Скидки на доставку, закрытые распродажи, подарки и многое другое в программе Qwintry Plus!
Мы помогаем пяти российским благотворительным фондам. Присоединяйтесь и вы!
Где покупать?
9 из 10 магазинов США не доставляют товары в Украину. Бандеролька с 2010 года решает эту проблему, помогает сделать покупки в зарубежных магазинах и доставляет заказы курьером до двери или в ПВЗ.
Шопинг в США — это сотни мультибрендовых и фирменных онлайн-магазинов, почти во всех имеются разделы со скидками. Вы можете покупать одежду, гаджеты, товары для дома и даже ювелирные изделия.
Почему это выгодно?
Цены на Michael Kors, New Balance, Levi’s — в 2–3 раза ниже, чем в магазинах вашего города! Посмотрите, сколько вы сможете сэкономить при заказе из Америки в Украину на примерах наших клиентов:
Цена товаров | $132 |
Вес посылки | 2.76 кг |
Стоимость доставки | $68 |
Экономия | $184 |
Цена товаров | $699 |
Вес посылки | 0.62 кг |
Стоимость доставки | $26 |
Страховка | $21 |
Экономия | $267 |
Sony PS5 Blue-Ray Edition
Цена товаров | $699 |
Вес посылки | 8.67 кг |
Стоимость доставки (с учетом таможенной пошлины $24.84) –> | $118 |
Экономия | $170 |
Telegram APIs
We offer two kinds of APIs for developers. The Bot API allows you to easily create programs that use Telegram messages for an interface. The Telegram API and TDLib allow you to build your own customized Telegram clients. You are welcome to use both APIs free of charge.
You can also add Telegram Widgets to your website.
Bot API
This API allows you to connect bots to our system. Telegram Bots are special accounts that do not require an additional phone number to set up. These accounts serve as an interface for code running somewhere on your server.
To use this, you don’t need to know anything about how our MTProto encryption protocol works — our intermediary server will handle all encryption and communication with the Telegram API for you. You communicate with this server via a simple -interface that offers a simplified version of the Telegram API.
Bot developers can also make use of our Payments API to accept payments from Telegram users around the world.
TDLib – build your own Telegram
Even if you’re looking for maximum customization, you don’t have to create your app from scratch. Try our Telegram Database Library (or simply TDLib), a tool for third-party developers that makes it easy to build fast, secure and feature-rich Telegram apps.
TDLib takes care of all network implementation details, encryption and local data storage, so that you can dedicate more time to design, responsive interfaces and beautiful animations.
TDLib supports all Telegram features and makes developing Telegram apps a breeze on any platform. It can be used on Android, iOS, Windows, macOS, Linux and virtually any other system. The library is open source and compatible with virtually any programming language.
Telegram API
This API allows you to build your own customized Telegram clients. It is 100% open for all developers who wish to create Telegram applications on our platform. Feel free to study the open source code of existing Telegram applications for examples of how things work here. Don’t forget to register your application in our system.
Getting started
Creating an application
How to get your application identifier and create a new Telegram app.
User authorization
How to register a user’s phone to start using the API.
Two-factor authentication
How to login to a user’s account if they have enabled 2FA, how to change password.
QR code login
Error handling
How to handle API return errors correctly.
Handling different data centers
How to connect to the closest DC access point for faster interaction with the API, and things to watch out for when developing a client.
Handling updates
How to subscribe to updates and handle them properly.
Handling PUSH-notifications
How to subscribe and handle them properly.
Channels, supergroups, gigagroups and basic groups
How to handle channels, supergroups, gigagroups, basic groups, and what’s the difference between them.
Channel statistics
Telegram offers detailed channel statistics for channels and supergroups.
Calling methods
Additional options for calling methods.
Uploading and Downloading Files
How to transfer large data batches correctly.
Pagination
How to fetch results from large lists of objects.
Client configuration
The MTProto API has multiple client configuration parameters that can be fetched with the appropriate methods.
Security
Secret chats, end-to-end encryption
Security guidelines
Important checks required in your client application.
Perfect Forward Secrecy
Binding temporary authorization key to permanent ones.
End-to-End Encryption in Voice and Video Calls
Optimization
Client optimization
Ways to boost API interactions.
API methods
Available method list
A list of available high-level methods.
API TL-schema, as JSON
Text and JSON-presentation of types and methods used in API.
Available layer list
A list of available schema versions.
Other articles
Working with bots, using the MTProto API
How to work with bots using the MTProto API.
Commands
Bots offer a set of commands that can be used by users in private, or in a chat.
Buttons
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.
Menu button
Bots can choose the behavior of the menu button shown next to the text input field.
Inline queries
Users can interact with your bot via inline queries, straight from the text input field in any chat.
Games
Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats; how to work with games in the MTProto API.
Web apps
Bots can offer users interactive HTML5 web apps to completely replace any website.
Attachment menu
Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.
Search & filters
Telegram allows applying detailed message filters while looking for messages in chats. This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more.
Polls
Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.
Reactions
Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.
Emoji status
Telegram allows users to set an emoticon or a custom emoji as status, to show next to their name in chats and profiles.
Invite links and join requests
Channels, basic groups and supergroups may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.
Admin, banned and default rights for channels, supergroups and groups
How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.
Discussion groups
Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.
Channel comments and message threads
Telegram allows commenting on a channel post or on a generic group message, thanks to message threads.
Admin log
Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.
Pinned messages
Telegram allows pinning multiple messages on top of a specific chat.
Mentions
Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.
Scheduled messages
Telegram allows scheduling messages.
Live geolocations
Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.
Min constructors
Sometimes, user and channel constructors met in group chat updates may not contain full info about the user: how to handle such constructors.
Account deletion
How to delete a Telegram account.
Imported messages
Telegram allows importing messages and media from foreign chat apps.
Telegram Passport
How to work with Telegram Passport directly using the MTProto API.
Telegram Payments
How to work with Telegram Payments directly using the MTProto API.
Styled text with message entities
How to create styled text with message entities
Working with stickers
Telegram clients support displaying animated, static and video stickers.
Working with custom emojis
Telegram allows including custom animated, static and video emojis directly inside of messages.
Working with animated emojis
Graphical telegram clients should transform emojis into their respective animated version.
Working with animated dice
Telegram supports sending animated dice emojis.
Message drafts
How to handle message drafts
Folders
Working with folders
Top peer rating
If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).
Handling file references
How to handle file references.
Seamless Telegram Login
Handle Seamless Telegram Login URL authorization requests.
Wallpapers
How to work with chat backgrounds.
Notification sounds
How to work with chat notification sounds.
Message transcription
How to transcribe voice messages.
Web events
When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.
Ўзбекистон бутун ЕОИИ ҳудудида давлат хизматларини интеграциялашни таклиф қилмоқда
Бу ташаббус билан ЕОИИга аъзо давлатлар ҳукумат раҳбарлари ҳам иштирок этаётган Digital Almaty-2023 халқаро рақамлаштириш форумининг ялпи мажлисида мамлакат бош вазири Абдулла Арипов чиқди.
Ариповнинг таъкидлашича, жорий йилда республикада соғлиқни сақлаш, таълим, қишлоқ ва сув хўжалиги, шунингдек, иқтисодиётнинг реал сектори каби соҳалар рақамлаштирилмоқда.
Шунингдек, яқин 2 йилда халқаро интернет-канални кенгайтириш, мобил алоқа тармоғини модернизация қилиш ва барча вилоят марказларини 5G стандарти билан қамраб олиш режалаштирилган.
«Юқоридаги устувор вазифаларни муваффақиятли амалга ошириш яқин ҳамкорликсиз мумкин эмас. Шу муносабат билан биз минтақавий миқёсдаги ташаббусларимизни фаол интеграция қилишга бел боғлаганмиз. », — дея қўшимча қилди Бош вазир.
Унинг сўзларига кўра, мавжуд имкониятларни бирлаштириш минтақани рақамли технологияларнинг илғор марказига айлантириш имконини беради.
▪️ЕОИИга Россия, Арманистон, Беларус, Қозоғистон ва Қирғизистон киради. Молдова, Куба ва Ўзбекистон кузатувчилардир.