FruitieX / teleirc

A simple Telegram ↔ IRC gateway.
MIT License
272 stars 88 forks source link

List of Usernames on IRC side #185

Open EccoBlackfin opened 7 years ago

EccoBlackfin commented 7 years ago

Have the bot respond to a request like !names (to keep it from interfering with IRC's commands), causing it to send a PM to the IRC user with a list of names of the users on Telegram.

acagastya commented 7 years ago

That would be not so easy. There are groups with 1000+ users. Besides, a list of offline users is of no use. I don't think the bot has access to the information who is online.

Mikaela commented 7 years ago

Could the http server be used to write a list of names when !names is called and then outputting link there to channel updating it whenever !names is called?

acagastya commented 7 years ago

But what would be the point in doing for the channels like [t.me/wikipedia_zh] where there are 1800+ users? It is not impossible, but it is pointless.

EccoBlackfin commented 7 years ago

I'd be willing to bet there are far more channels with under one hundred users than there are with 1800+. I know that all the channels I'm in(including the two that use this) there are between 20-50 users at any given time, and it's rather difficult to memorize people's telegram names when you need to ping them. For example, "Hey Mike!" would be fine on IRC, because Mike is the person's screenname. But on telegram, you'd have to say "Hey @thatonedudewiththehair4665!" in order to get a response out of them, since Mike is only the displayed name (plus, you'd still have to memorize that he joined the room six months ago). Knowing who you're talking to at any given time is an incredibly useful feature.

acagastya commented 7 years ago

In the end, it will be a pointless bet -- there will be no way to obtain the stats, and it would create flooding issue on both the platforms.

ImTheDeveloper commented 7 years ago

I use this with the user api and not the bot api in telegram. I send a ".contacts " which spews a list of nicknames out as a CNOTICE on IRC to the user along with their last seen time. This enables you to then do a direct message to that person using !tg username message . I believe this use case has sort of died though and potentially you are better off just using @nickname in the channel to get someones attention since the relayed messaged will notify the user once it hits telegram anyway. Priv messages don't really work too good.

kovachwt commented 6 years ago

@ImTheDeveloper do you have this implemented in a fork, a different bot, or what? Currently missing that feature in teleirc :)