How to connect two telegram bots between each other? - telegram-bot

I'm new in telegram bots and I wanted that one bot sends messages to a chat and another bot reads the messages, filters it and sends filtered messages to me.
I read related articles here, but I haven't found any appropriate solution.
I read that it isn't possible to create transfering messages between two bots because one can't see messages from another.
But still I haven't found final answer here.
Can you help me, is it possible or not?
And if it's possible, how to connect one bot to another?

You can't do that or rather you're not allowed to. Because it will create an infinite loop between both the bots.
To avoid that Telegram bot has some restrictions.
It can't reach to someone unless they have messaged the bot previously. So, theoretically it is impossible.

Related

Telegram bot: uploading new features without rebooting bot

I have telegram bot written in Python with lot's of users. The question is: when I do some changes (for example adding new inline buttons to bot) all users need to reset it or to use '/start' command. How to make this process hidden, not to ask all users do it? Maybe there is a variant, when bot restarts itself by schedule? Every suggestion will be really valuable for me....

Telegram bot for arXiv

I was wondering if there exists any Telegram bot that sends me arXiv articles everyday?
I looked up the internet but I couldn't find. I need it since it's basically hard to browse arXiv everyday and read new articles. I am not sure if here is the best place to ask this question. So sorry if I am wrong. Thanks.
Yes. There are some Telegram bots for arXiv. The one candidate for what you're looking for is #dailyarXiv_bot that sends you submitted articles everyday. Another famous option is #ArXivBot. Another bot that I've just recently seen is arXiv_kitten.

Telegram CLI/BOT all implicit limits

I want to send OTP , first to Telegram with usual SMS fallback.
Therefore i have to detect read callback of OTP message from user only with telegram cli API, unfortunately(Telegram bots doesn't provide read ack. feature).
There is no any concrete info in Telegram.
Is there any limit related to telegram bot (and telegram cli) subscribers(contacts) count? Except report spam.
Also what is the limit with native telegram api sendMessage? Which density i have to keep to not banned? Also do i need more numbers or accounts for this?
I searched everywhere and can't find relevant numbers although there are some users with plenty number of accounts.
Thanks for help!
UPDATE
Limitations on bot like 30q/sec and etc. is explicit in FAQ. i have to know all other limitations, especially on CLI(max contacts, requests frequency limit). For example, i have to know is this number registered in telegram - This is possible only with cli.Therefore i don't want to abuse platform restrictions, cause of commercial cause. Glad to hear more official ways.
You can check out Bot FAQ:
If you're sending bulk notifications to multiple users, the API will
not allow more than 30 messages per second or so. Consider spreading
out notifications over large intervals of 8—12 hours for best results.
Also note that your bot will not be able to send more than 20 messages
per minute to the same group.

How make spam throw telegram?

How make bot useing telegram? I know than open source of telegram open source now. (https://core.telegram.org/api)
Any idea please.
You can't spam with telegram bots as after x requests You'll get a too many requests error. If you want to create a telegram bot you'll have to learn a programming language first

Telegram Automation

I'm working on a program, it's mission is that we define some number for it (some of our mobile numbers) and it should register them in Telegram, and then gets all messages that send to that number. As you may know, the registration in Telegram needs providing a phone number and after that a validate the number by a code that is sent from Telegram.
I read Telegram API, but it was complex and with no certain example and explanation.
I need your help, Thanks.
To implement Telegram chat,
First of all, you should obtain your own api_id and api_hash as described here.
Read the document and get ideas about the terms used in the Protocol which will be useful to go further.
Create a TCP connection with Telegram Server via port 443.
Telegram uses a key called 'Authorization Key' (ie Auth key) for Encryption/Decryption and it will be derived in both Server and Client using Diffie-Hellman Algorithm by various steps. You can create this Auth key by following the steps explained here and you can also see a sample for this process here.
When you are successfully done all steps, you will finally receive 'dh_gen_ok' response from Telegram server.
Now you can send RPC queries (Telegram APIs). The list of APIs is given in this link https://core.telegram.org/methods
This is just brief points which will help to give an idea about this. To implement the whole process, you need to read the documents and get to know the flow and all its limitations. Hope it helps :)
Yes you can do this
BUT
first of all, you should write a program (class) for one number
and after that
create another instances of that class for another numbers
if you write main class (work by One phoneNumber)
it's very simple to extend you program to work by many numbers
Good Luck !!!