How can I send messages from bot in specific group topic - telegram-bot

I'm searching a way to automatically send messages from a bot in a specific group's topic.
To better explain:
I created a bot and a group (named i.ex. Home) and added the bot in the group. Got the group chat id.
A quick test, sending a message in this group, was successful.
Now I'd like to create topics in this group, i.ex. Temperature, Network and so on.
What I'd like to accomplish is that various services in my home could post messages in the right topic. Home assistant temperature sensors in the Home/Temperature topic, network checks in the Home/Network and so on.
Thank you very much
Elvis D.

Related

How can I send scheduled messages to multiple Telegram groups?

I've added the Telegram Bot to multiple groups as an admin, I registered the Bot in IntelliJ using Java like it is described here, so I can receive and send messages. What I need to do now is send a message like:
"TODAY IS <DAY_OF_THE_WEEK>, THE BEST DAY OF THE WEEK!"
plus some animation (a different one for each day of the week) to all of the groups every day at a certain time. I am new to all this and would really appreciate the help. I'm not even sure whether I should use Java or another language to do that. I picked Java only because it was used in the tutorial and I wanted to follow the instruction directly without having to change anything in the process.

How to connect two telegram bots between each other?

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.

How can I get all active streamings in agora.io?

I have just started using Agora.io and want to implement it to a project of mine.
Following some tutorials I can already start a streaming as host, and other user can join to it as long as the stream is published.
My problem is I would like to show the join button only when the stream is published and not all the time. Also I will have dynamic channels in the future so Iam looking for a way to get the list of all active channels. How can I do that?
you can use this Restful API to get all the active channels: https://docs.agora.io/en/Interactive%20Broadcast/dashboard_restful_live?platform=All%20Platforms#get-the-project-list-get
When there is at least one user in the channel, the channel is considered as an active channel.

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.

Implementing Facebook's Like feature using Google Cloud Messaging

I have a use case to implement a 'like' feature for messages using GCM. One approach that comes to mind is to make each post a 'topic' and then send all likes on a post as a separate GCM message on that topic.
However, in order to achieve this, the client has to register for each topic corresponding to the post that it has loaded on the UI in real time. This brings me to the following questions:
This is approach right?
How long will it take for a client's subscription to a topic to reflect at GCM's end? Same for unsubscription?
Can I get a list of all subscribers to a given topic?