Best way to distinguish between Telegram group and channel with gramJS - telegram

GramJS https://gram.js.org/ is the good nodejs library for interact with Telegram.
My question is
Is there any way to know which one is group, which one is channel when input is just telegram link (ex: t.me/name)
Thank you folks.

Related

Serch for automaitc comments for telegram group

I'm a dumb sparrow and can't find a bot or app.
I am looking for a telegram program that will create the app of communication in a group.
as I see it, I prescribe phrases for comments, and the app randomly select N number and posts them from !different accounts! to the chat. (I posted the news, turned on the bot and it threw various reactions) manually jumping between accounts writing comments to the group is very dreary.
Has anyone seen something like this? I only find services, not the app.
find app or advise for supporting tg group.

Create a radio in a group voice chat on Telegram

Attention: If this is not the Stack community for this type of question, please do not vote negative, please indicate in which Stack community I should ask that I delete the question without losing points.
I am researching a way to use the voice chat of a Telegram group to become a radio, I want to know if by chance someone has any idea on how I could make this exist.
In this case, the idea would be to create an online radio on some website and somehow leave a Telegram profile just to play that radio in the voice chat.
Today I do this manually, leaving a speaker near the cell phone and it detects what is playing through the microphone, but the quality is very poor.
There are several libraries available out there with which you could stream music in telegram voice chats such as tgcalls, pytgcalls in python
that can used along with pyrogram.

catching event of deleting a groupe-chat in telegram bot api

I'm rellay happy with that community here. I found many answers in different cases. But this time I don't find one. So maybe someone can help me?
I'm working on a telegram bot using php and webhook updates. I track if my bot is added in a group chat by "new_chat_member" or "group_chat_created" and by "left_chat_member" if it got deleted from that groupe. UNtil then everything works fine.
If I - as admin - and the bot are the last two members and I delete the chat in the telegram app, I just get a "left_chat_member" for me (the last user in the groupe). But what about the bot? Isn't the chat deletet completely? Is the groupe remaining just with the bot as a member? Got someone an idea how to catch that situation? I would need something like "chat_deleted"
Thanks a lot,
Markus
I found a possible solution:
https://core.telegram.org/bots/api#getchatmemberscount
Always on "left_chat_member" event, I check how many members are left. And if there is just two left I delete the chat of my "tracking" list. Still don't know if the bot is registered to that groub-chat on the telegram side, but don't really have another idea.

adding members to a telegram channel by their ID

I have a channel in telegram, and i want to add my customers to it.
I only have their Telegram IDs.
How can i do this?
Is there any way to do so?
any help would be appreciated.
Typically a User chooses to subscribe to your channel, you cannot "ADD" someone to a channel.
But you may add users to groups.

What better way to show a list of online users in the rtmfp (cirrus) group

What better way to show a list of online users in the rtmfp (cirrus) group?
For example in this project http://www.flashrealtime.com/simple-chat-p2p-netgroup-rtmfp/.
Initial registration is not difficult (it`s can do easy like exchanging messages between rtmfp cirrus nodes at the time of entry in the group), but there is a problem of how to perform monitoring of already registered users. Perhaps there are standard mechanisms, such as a list of all peers of cirrus group, or other technology?
netGroup.neighborCount is what you are exactly looking for.
You could find more info here.
http://forums.adobe.com/thread/636089

Resources