Telegram bots read channel updates - telegram

As telegram bots reads groups updates, is there any way to read channel updates also?

At the moment, Telegram Bots API doesn't allow bots to receive messages in channels, so it is not possible to read them (unless you use a Telegram API one.
Update
Since November update, the api now supports channel post and edition updates.

for not your channel:
if the channel is public, you can scrape from html code with address : https://t.me/s/ChannelName/messageId
if the channel is private, nothing to do
for your channel:
you can create a dummy group, then request 'forwardMessage' to forward from channel to dummy group

Yes, you only have to add the bot to your channel.
This is a JSON RESPONSE
{"update_id":164442191,
"channel_post":{"message_id":1405,"chat":{"id":-1001066700541,"title":"Underworld'S Creatures","username":"IlSottobosco","type":"channel"},"date":1499299471,"reply_to_message":{"message_id":1403,"chat":{"id":-100106670231,"title":"Underworld'S Creatures","username":"IlSottobosco","type":"channel"},"date":1499298047,"text":"Test"}}

Related

Is it possible to send message from my account with interval in Telegram?

I need to send message from my own account with my nickname and profile (not from bot account) to any selected contact or group. How can I do that? I found bots with similar behaviour but messages are sent from bot account not from my profile which is what I need.
what you're looking for is a so-called "userbot" or "selfbot", i.e. a bot that works with the Telegram API in contrast to the Telegram Bot API. Searching for Telegram userbot library <your preferred programming language> should probably get you started.

Telegram Auto forward

I have subscribed to a couple of paid alerts which sends me alert on the critical financial events on telegram via telegram-bot.
I intend to develop an application that captures such messages which are sent by these bots and store in the database.
Is it possible to do it in telegram ? (telegram is only option. I can create other 'special ID or somekind of BOT and share this my custom bot with companies which are sending alert)
thanks in advance.

What is rate limit of accessing Telegram bot APIs?

I read in the docs that bot can send:
30 messages/second to different chats
1 message per second to the same chat
20 messages per minute to the same group chat
but this is all about sending messages, what about other endpoints? more specifically getChatMembersCount method?
Thanks
I know it's been a long time, but there's a very good resource now - https://limits.tginfo.me/en. There's a Bots section there. Also if you have time you can send pull request to the github repository - https://github.com/tginfo/Telegram-Limits/

how to get latest post on channel with link

i have a bot and want to get last posts from a telegram channel that isn't joined on in. if that's bot add into channel administrator it's possible, but It is not possible for me.
how should i do it?
It's impossible with current Telegram Bots APIs.
The bot must be administrator of the channel to handle channel posts.

How to get channel name in incoming message using only Telegram Bot API?

I'm working on one Telegram bot and faced a big problem: In order to exlude some "fraud" things one can do with my bot, I need to verify whether a user is admin in some channel or not. However, if user forward message from channel to bot, Chat.type parameter is still private, not channel.
Is there any way to get a pair user_id <--> in which channel user_id can post using only Bot API? Unfortunately, Inline mode doesn't help at all too.
Of course, I can use Telegram CLI for that, but in this particular situation it's prohibited.
As of May 6, 2016, a new field forward_from_chat is added to Message object. So my problem is solved.
More info about Message object: here

Resources