telegram bot api - get all messages in a group - telegram

I'm working on Telegram bot api in my java application. I have created a super group and add my bot to this as an administrator. I want to get all messages in that super group(not deleted messages) via bot. Is there any useful method for doing that?

Yes. first, you should "disable" privacy of your bot so it can access to all messages in groups. second, use getUpdates to see recent updates and user messages will be there.

Related

Telegram bot livecheck or how to get bot's chat id

Can I use telegram api for the bot live-check automation? There are dozens of bots created by a third-party service so I cannot modify their source code, but I've their names and tokens.
I thought I can create a bot who will send messages to others bots, but I can't find any info of how to obtain bot chat id.
So the question is how to obtain bot chat id to write a message to him from another bot. Or how to health check telegram bots.
Telegram bots do not receive updates from other bots, otherwise this could lead to infinite looping.
Why doesn't my bot see messages from other bots

How to view a telegram account by chat id?

I'm wondering if there is any possibility to view or message a non-contact person who has no username, with his/her chat id?
I only got a chat id.
You can use sendMessage method and pass chat_id as chat_id you have it and then send message to that user.
https://api.telegram.org/bot<YOUR_API_TOKEN>/sendMessage?chat_id=<chat id you have>&text=Hello world
If your bot have received messages from that user, you can use inline mention, and your user account can view his profile/PM him.
But unfortunately, bot account can't initiate chat for now :(
I do not know exactly what programming language you use but I think you can use some Telegram client library like Telethon
Telethon is Telegram client implementation in Python 3 which uses the latest available API of Telegram
If you use PHP, use MadelineProto instead.

Telegram API Client receive message

I have problems with telegram's api in c#. I search any solutions how to recevie message from Telegram using API. I found only library for Telegram BOT(send message etc.), but I need only recevie message from one user. There is option "Get.Message" in Telegram Api, but I can't find simply library to use this option.
using the telegram client api you can get updates automatically from telegram when a message is received. You simply need to handle the response once the session is created and a connection is made
Just in case you don't want realtime updates, you can use messages.GetHistory and supply the number of messages you'd like to retrieve. You need to provide the chat ID and access hash which you can get from contactsResolveUsername
enter link description here

get seen count of Telegram messages in php

I want to get the message's seen count via Telegram bot api, telegram cli or other ways.
I have all message ids and the Telegram bot is admin in my channel.
Please guide me.
Unfortunately, you can not get this type of data by bot at this time. :(

How can i trigger a Telegram Bot via an API user

i've set up a working telegram bot that get's triggered on a /mission command. I want to use the bot within groups to enable a fast response feedback system for my organization. the flow is like follows:
1) a API client (no bot, just pure api) sends a message to a group, triggering the bot using /mission .
2) the bot responds to the command and the feedback process starts..
As a normal user, I can trigger the bot whereas the api user won't even reach my bot using webhooks.
Is there any known limitation on what APIs can trigger?
thanks!
Telegram MTProto API has same limits and same benefits of a normal Telegram user. So, you can trigger all bots you want, but be careful with FLOOD_WAIT error: an user sends too much messages in one second or in one minute, Telegram blocks the user for x seconds.
If you don't want to setup tg-cli, and other stuff to run MTProto client on your server and control it, I suggest you to use PWRTelegram APIs, so logging in as user.

Resources