Tg-channel-api - A JSON API for latest messages of public Telegram channels

Telegram Channel API

A JSON API for latest messages of public Telegram channels.

Try it now:

Usage

You can use this Web API to get the latest messages, or any one of recent 20 messages, from any public Telegram channel, anonymously.

The official demo is at t-me.vercel.app.

Request: GET /:channel_username/:message_id?

Parameters of request:

  • channel_username (string) : the substring of the channel link after "t.me", e.g. durov is the channel_username of t.me/durov
  • message_id (integer, within [1, 20] for now, optional) : the ordinal number of the message, e.g. 1 for the latest message, 2 for the second-latest message, etc. Default is 1.

For response format, check https://t-me.vercel.app/durov.

Technical details

It's running on Vercel and uses its Go runtime to serve the API.

To deploy your own instance, simplely fork this repository and connect your copy to Vercel.

TO DO

  • Add support for optional fields
    • photos .tgme_widget_message_photo_wrap
    • sender's name .tgme_widget_message_from_author
    • etc.

Contributing

Contributions are welcome!

Try these ideas:

  • make progress to the to-do list above
  • deploy to a new platform
  • propose/add a new feature
  • find/fix a bug
  • improve the performance
Similar Resources

Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Dec 30, 2021

A bot to fetch latest leads/resources from Twitter

Covid-Twitter Stream Bot A simple bot that uses Twitter's Stream Search API to send recent tweets that match the filter, to a Telegram group. Steps to

Nov 28, 2022

RaunchBot brings you the latest Raunchy content straight to your favorite Discord server.

RaunchBot RaunchBot brings you the latest Raunchy content straight to your favorite Discord server. Development: Compile and run the project. TOKEN=ab

Jan 22, 2022

RaunchBot brings you the latest Raunchy content straight to your favorite Discord server.

RedditBot RedditBot brings you the latest Raunchy content straight to your favorite Discord server. Get RedditBot in your discord here. Bot Commands:

Jan 22, 2022

A Discord bot for managing ephemeral roles based upon voice channel member presence.

A Discord bot for managing ephemeral roles based upon voice channel member presence.

ephemeral-roles A Discord bot for managing ephemeral roles based upon voice channel member presence. Quickstart Click on the Ephemeral Roles logo head

Dec 19, 2022

A discord bot that watches for tiktok URL's and automatically uploads the corresponding video to the channel

TikiTok Bot A Discord bot that watches for TikTok URLs and sends a message to the channel with the corresponding video attached Click to invite the bo

Jul 28, 2022

discord bot that plays music in a voice channel discord

Music discord bot by serje3 Description A bot written in the Golang language plays music on your server's voice channel on Discord. It can be built an

Nov 17, 2021

InStockBot notifies a selected Discord channel when a specific product is back in stock

InStockBot notifies a selected Discord channel when a specific product is back in stock

Jan 20, 2022

Slack-emoji-bot - This Slack bot will post the newly created custom Slack emojis to the channel of your choice

Slack Emoji Bot This Slack bot will post the newly created custom Slack emojis t

Oct 21, 2022
A Telegram bot that feeds you every hour with the latest news about Hacking, FOSS, privacy, security, etc

HackerNews Telegram bot - Golang version A Telegram bot that serves you with personalized HackerNews articles. You can self host it and make it filter

Feb 1, 2022
A Discord bot for downloading attachments from channel messages.
A Discord bot for downloading attachments from channel messages.

dcdl This is a Discord bot for downloading attachments from channel messages. Setup First, set up a Discord bot application (see here how to do so). N

May 11, 2022
Client to send messages to channels in Slack.

Slack Client A simple client to send messages to channels in Slack. Example package main import { "fmt" slack "github.com/tommzn/go-slack" }

Mar 13, 2022
Instagram to Telegram Channel Bot.

InstaTG Instagram to Telegram Channel Bot. Can access posts from any public Instagram account or an account that you follow. Features Keeps track of e

Nov 16, 2022
"Ukaska" is a MongoDB image with a built-in backup to Telegram channel

Ukaska Ukaska (eng. Pointer) - is docker image with mongodb, that has builtin backup to Telegram Getting Started Build with Docker Mongo DB docker ima

Jun 28, 2022
Simple telegram Bot to ban Anonymous Channel users in a group

Restrict Channel Robot Telegram Bot, written in GoLang to delete messages and ban anonymous users who send as channel in groups. Can be found on teleg

Dec 20, 2022
A telegram bot to ban the chat spammers by channel, made with Golang.

ChannelBot A telegram bot to ban channels spamming chat. Vars TOKEN - Your Telegram Bot Token (@BotFather) More Information With the latest update of

Nov 8, 2022
A bot based on Telegram Bot API written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

InstagramRobot InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and

Dec 16, 2021
lightning - forward messages between a qq group and a telegram group

lightning The purpose of this project is to forward messages between a qq group and a telegram group. Getting Started Clone this project: git clone ht

Nov 9, 2022
The serverless OTP telegram service use telegram as OTP service, and send OTP through webhook

Setup OTP First thing, you need prepare API(webhook) with POST method, the payload format as below { "first_name": "Nolan", "last_name": "Nguyen",

Jul 24, 2022