Is it possible to get all my chat ids in telegram bot api? - telegram

I'm writing a bot that will send the same message for many people I've ever communicated in telegram. So I need to get all my old chat_id's.
All I found is just to store chat_id when I receive a new message as here Retrieve all chat ids using Telegram bot
But it doesn't fit me. If is it possible, please tell me, I'd really apreciate it!

It's not possible, as there is no such method listed in the Bot API Docs.

Related

How to tag everyone in the chat by my telegram bot?

I need to tag everybody in chat where my bot added.
My bot writes: #all and it should tag everybody in the chat.
I don't see any Telegram API methods to get all users in specific chat. How should I resolve the problem?
There are various obstacles that don't let you mention everyone in a single message:
You can only have up to 50 mentions in each message. [1]
You cannot fetch a list of all members in a chat using a bot.
If you insist on doing this, you should use a database to collect information about the members of these chats, when they send messages. And afterward, you should send multiple messages to mention all of them 50 by 50.
If you want a simple way to notify all members, you can just pin a message.

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 bots not responding

I have created some new telegram bots to test their functionality. I haven't used them before, but I cannot seem to get them to respond to any commands?
Has anyone come across this issue before?
You have created a telegram bot on telegram. However..
Did you set any webhooks for the bot?
You should set a webhook/polling and write a backend to make it response to your queries.
For reference you can start from here
https://core.telegram.org/bots/api
set the webhook for your bot.
Ex:
http://api.telegram.org/bot<TOKEN>/setWebhook?url=<ENDPOINT>

find out who watched my telegram Avatar

Recently, There are new robots that claim to be able to tell who has seen your profile photo but most of them are fake.
I want to know is it actually possible to write that bot? Directly by using bot api or indirectly like creating a channel for bot ...
This is not possible in Telegram, those bots just provide fake data.
You can't even know who views your channel post via either Client API, Bot API, or unofficial APIs.
I think all of these robots are fake and for ads. actually it's not useful that a robot tell who seen your profile photo. I think it is impossible.

Telegram: How to add another(existing) bot to bot_father?

How can I add another existing bot to my BothFather in telegram?
I have my own bot and I can see it in BotFather and now I am asked to manage another bot (which I have its security key).
But I could not see this bot in my BotFather(obviously, because I did not create it) and I could not find any way to add this second bot into my BotFather in order to change its info or default commands list.
If I understand correctly, you have a bot that you created yourself with #BotFather and you can manage its commands, info etc. by talking to BotFather.
Then you have been asked to manage another bot created by someone else and you have been given its token.
Let me tell you that you cannot change the info of the Bot created by someone else. i.e. you don't have the ownership of the Bot.
Bot Ownership transfer is a feature that Telegram Support said will consider in future.
As far as making the bot work, by using the API Token you can go through their Bot API Documentation.
[EDIT]
With Bot API 5.0, it's now possible to Transfer the bot ownership.

Resources