Use the same API calls and requests for all messaging apps. We do all the work for you.
Telegram React; Telegram Database Library (TDLib) TDLib – a cross-platform client designed to facilitate creating custom apps on the Telegram platform. Telegram X for Android – a slick experimental Telegram client based on TDLib. Unofficial apps. Unigram, a client optimized for Windows 10 (based on TDLib) (desktop and Xbox One) Telegram CLI. Pure instant messaging — simple, fast, secure, and synced across all your devices. Over 100 million active users in two and a half years. FAST: Telegram is the fastest messaging app on the market, connecting people via a unique, distributed network of data centers around the globe.
Our multi-location data centers guarantee fast access, low latency, high performance and high availability.
Our service starts at 0 € base price and you only pay for what you need. Price per message starts at 0.003 € per message. Thats 10 % of average SMS cost.
We offer a variety of SLAs to ensure robust and scalable operation of your application.
All message processing is fully GDPR compliant as we provide a data processing agreement. We only save data when it's necessary.
Use our platform to communicate with your customers where they are: On WhatsApp, Telegram and Messenger. You can send and receive messages via all channels using a simple, structured message format. We will handle all quirks in the background, so you can focus on what you do best: Providing a great experience to your clients.
Our API was designed to be integrated into your stack, whatever technology you’re on. We stick to existing web standards wherever possible — JSON data, OAuth authorization and REST hooks, for example.
Sign Up Now
Connect your Facebook Pages, Telegram Bots and create WhatsApp Business API Accounts
To use WhatsApp, sign up for a WhatsApp Business API account.
Integrate our API.Start sending and receiving messages.
You don’t need your own phone number for WhatsApp Business – we can provide you with one upon request.
If you haven’t already, you should start by signing up for an account. Don’t worry, we only ask for your email and a password — or even better, just use your GitHub, Google or Facebook account.
After answering a few questions, you can set up your first channel, for example using a Telegram bot. We guide you through every step of this process. This enables you to send messages:
After answering a few questions, you can set up your first channel, for example using a Telegram bot. We guide you through every step of this process. This enables you to send messages:
As the last step, you can set up a webhook to receive responses (and delivery notifications, if you’d like to). That’s it, you’re done! Metro: last light redux reviews. All in all, you should be up and running in under five minutes.
This snippet is all you need to send a message, right from your command line. Learn how to use the API in the extensive documentation.
We take great pride in our pricing being as simple as it gets. In fact, all you need to know fits in this section! There are no hidden costs, no additional setup fees or “premium packages” of some sorts.
The only notable exception being that WhatsApp supports so-called “template notifications”. These messages may be sent for free in a 24 hour window after the last customer message. Outside that time window, however, WhatsApp charges a rate fixed per recipient country. We don’t bill you anything on top of the WhatsApp rate.
Pay a rate of 0.003 € per message (incoming / outgoing).
*switching between flat rate and price per message is possible at any time. A MAU is any user that sent or received at least one message during a calendar month. Invoices are created at the first day of a month based on the current setting (MAU or ppm).
Connect as many Facebook pages as you like – for free
Connect as many Telegram bots as you like – for free
You can choose between charging per message sent and received or monthly active user at any time. Other than that, we only bill you for WhatsApp Business channels and template notifications sent via those. Telegram and Facebook Messenger may be added free of charge and without any usage limits.
To make it easy to get started, we don’t charge for the first 1000 messages before you add a credit card!
Some things still unclear? Check out the pricing section in our FAQs.
Sign Up NowSome things still unclear? Check out the pricing section in our FAQs.
The Unified Messaging API is a product by MessengerPeople, one of the pioneering companies in professional messenger services and the leading Software-as-a-Service provider for messenger communication. With our products, you can easily and securely use the most popular global messaging apps.
![Telegram Telegram](https://nordicapis.com/wp-content/uploads/How-to-Build-Your-First-Telegram-Bot-Using-PHP-in-Under-30-Minutes-1.png)
Telegra.ph is a minimalist publishing tool that allows you to create richly formatted posts and push them to the Web in just a click. Telegraph posts also get beautiful Instant View pages on Telegram.
To maintain the purity of the basic interface, we launched the @Telegraph bot for those who require advanced features. This bot can help you manage your articles across any number of devices and get page view statistics for any Telegraph page.
Anyone can enjoy the simplicity of Telegraph publishing, not just Telegram users. For this reason, all developers are welcome to use this Telegraph API to create bots like @Telegraph for any other platform, or even standalone interfaces.
All queries to the Telegraph API must be served over HTTPS and should be presented in this form:
https://api.telegra.ph/%method%
. If a
path
parameter is present, you can also use this form: https://api.telegra.ph/%method%/%path%
.1. Methods
2. Types
3. Content format
Available methods
We support GET and POST HTTP methods. The response contains a JSON object, which always has a Boolean field
ok
. If ok
equals true, the request was successful, and the result of the query can be found in the result
field. In case of an unsuccessful request, ok
equals false, and the error is explained in the error
field (e.g. SHORT_NAME_REQUIRED). All queries must be made using UTF-8.createAccount
Use this method to create a new Telegraph account. Most users only need one account, but this can be useful for channel administrators who would like to keep individual author names and profile links for each of their channels. On success, returns an Account object with the regular fields and an additional
access_token
field.- short_name (String, 1-32 characters)
Required. Account name, helps users with several accounts remember which they are currently using. Displayed to the user above the 'Edit/Publish' button on Telegra.ph, other users don't see this name. - author_name (String, 0-128 characters)
Default author name used when creating new articles. - author_url (String, 0-512 characters)
Default profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.
Sample request
https://api.telegra.ph/createAccount?short_name=Sandbox&author_name=Anonymous
editAccountInfo
Use this method to update information about a Telegraph account. Pass only the parameters that you want to edit. On success, returns an Account object with the default fields.
- access_token (String)
Required. Access token of the Telegraph account. - short_name (String, 1-32 characters)
New account name. - author_name (String, 0-128 characters)
New default author name used when creating new articles. - author_url (String, 0-512 characters)
New default profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.
Sample request
https://api.telegra.ph/editAccountInfo?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb&short_name=Sandbox&author_name=Anonymous
getAccountInfo
Use this method to get information about a Telegraph account. Returns an Account object on success.
- access_token (String)
Required. Access token of the Telegraph account. - fields (Array of String, default = [“short_name”,“author_name”,“author_url”])
List of account fields to return. Available fields: short_name, author_name, author_url, auth_url, page_count.
Sample request
https://api.telegra.ph/getAccountInfo?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb&fields=['short_name','page_count']
revokeAccessToken
Use this method to revoke access_token and generate a new one, for example, if the user would like to reset all connected sessions, or you have reasons to believe the token was compromised. On success, returns an Account object with new
access_token
and auth_url
fields.- access_token (String)
Required. Access token of the Telegraph account.
Sample request
https://api.telegra.ph/revokeAccessToken?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb
createPage
![Telegram Telegram](https://miro.medium.com/max/1024/1*6XVqT2Yduow3Mf0WEqEt9A.png)
Python Telegram Api
Use this method to create a new Telegraph page. On success, returns a Page object.
- access_token (String)
Required. Access token of the Telegraph account. - title (String, 1-256 characters)
Required. Page title. - author_name (String, 0-128 characters)
Author name, displayed below the article's title. - author_url (String, 0-512 characters)
Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel. - content (Array of Node, up to 64 KB)
Required. Content of the page. - return_content (Boolean, default = false)
If true, acontent
field will be returned in the Page object (see: Content format).
Sample request
https://api.telegra.ph/createPage?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb&title=Sample+Page&author_name=Anonymous&content=[{'tag':'p','children':['Hello,+world!']}]&return_content=true
editPage
Use this method to edit an existing Telegraph page. On success, returns a Page object.
- access_token (String)
Required. Access token of the Telegraph account. - path (String)
Required. Path to the page. - title (String, 1-256 characters)
Required. Page title. - content (Array of Node, up to 64 KB)
Required. Content of the page. - author_name (String, 0-128 characters)
Author name, displayed below the article's title. - author_url (String, 0-512 characters)
Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel. - return_content (Boolean, default = false)
If true, acontent
field will be returned in the Page object.
Sample request
https://api.telegra.ph/editPage/Sample-Page-12-15?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb&title=Sample+Page&author_name=Anonymous&content=[{'tag':'p','children':['Hello,+world!']}]&return_content=true
getPage
Use this method to get a Telegraph page. Returns a Page object on success.
- path (String)
Required. Path to the Telegraph page (in the formatTitle-12-31
, i.e. everything that comes afterhttp://telegra.ph/
). - return_content (Boolean, default = false)
If true,content
field will be returned in Page object.
Sample request
https://api.telegra.ph/getPage/Sample-Page-12-15?return_content=true
getPageList
Use this method to get a list of pages belonging to a Telegraph account. Returns a PageList object, sorted by most recently created pages first.
- access_token (String)
Required. Access token of the Telegraph account. - offset (Integer, default = 0)
Sequential number of the first page to be returned. - limit (Integer, 0-200, default = 50)
Limits the number of pages to be retrieved.
Sample request
https://api.telegra.ph/getPageList?access_token=b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb&limit=3
getViews
Use this method to get the number of views for a Telegraph article. Returns a PageViews object on success. By default, the total number of page views will be returned.
- path (String)
Required. Path to the Telegraph page (in the formatTitle-12-31
, where 12 is the month and 31 the day the article was first published). - year (Integer, 2000-2100)
Required if month is passed. If passed, the number of page views for the requested year will be returned. - month (Integer, 1-12)
Required if day is passed. If passed, the number of page views for the requested month will be returned. - day (Integer, 1-31)
Required if hour is passed. If passed, the number of page views for the requested day will be returned. - hour (Integer, 0-24)
If passed, the number of page views for the requested hour will be returned.
Sample request
https://api.telegra.ph/getViews/Sample-Page-12-15?year=2016&month=12
Available types
All types used in the Telegraph API responses are represented as JSON-objects. Optional fields may be not returned when irrelevant.
Account
This object represents a Telegraph account.
- short_name (String)
Account name, helps users with several accounts remember which they are currently using. Displayed to the user above the 'Edit/Publish' button on Telegra.ph, other users don't see this name. - author_name (String)
Default author name used when creating new articles. - author_url (String)
Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel. - access_token (String)
Optional. Only returned by the createAccount and revokeAccessToken method. Access token of the Telegraph account. - auth_url (String)
Optional. URL to authorize a browser on telegra.ph and connect it to a Telegraph account. This URL is valid for only one use and for 5 minutes only. - page_count (Integer)
Optional. Number of pages belonging to the Telegraph account.
PageList
This object represents a list of Telegraph articles belonging to an account. Most recently created articles first.
- total_count (Integer)
Total number of pages belonging to the target Telegraph account. - pages (Array of Page)
Requested pages of the target Telegraph account.
Telegram Api Get Message Id
Page
This object represents a page on Telegraph.
- path (String)
Path to the page. - url (String)
URL of the page. - title (String)
Title of the page. - description (String)
Description of the page. - author_name (String)
Optional. Name of the author, displayed below the title. - author_url (String)
Optional. Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel. - image_url (String)
Optional. Image URL of the page. - content (Array of Node)
Optional. Content of the page. - views (Integer)
Number of page views for the page. - can_edit (Boolean)
Optional. Only returned if access_token passed. True, if the target Telegraph account can edit the page.
PageViews
Telegram Api Key
This object represents the number of page views for a Telegraph article.
- views (Integer)
Number of page views for the target page.
Node
This abstract object represents a DOM Node. It can be a String which represents a DOM text node or a NodeElement object.
NodeElement
This object represents a DOM element node.
- tag (String)
Name of the DOM element. Available tags: a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, video. - attrs (Object)
Optional. Attributes of the DOM element. Key of object represents name of attribute, value represents value of attribute. Available attributes: href, src. - children (Array of Node)
Optional. List of child nodes for the DOM element.
Telegram Api Token
Content format
The Telegraph API uses a DOM-based format to represent the content of the page. Below is an example of code in javascript which explains how you can use it: