is it possible to automatically read messages from specific telegram groupchat(I am included in this groupchat) without adding bot to a group? Basically the goal is to process specific telegram messages using java, but without notifying ppl included in the group that bot is being used. Thank you.
Asked
Active
Viewed 3,528 times
0
-
What do you want to do with the messages? – Menasheh Sep 25 '16 at 01:17
-
Just process them as they come. I thought about some Telegram api that would fire a method whenever there is a new message. Ofcourse I would log in to Telegram using login api call. So far Telegram API looks quite confusing, its nowhere as neat as bot api, so I would be very grateful for any help from more experienced developer :) – dev85 Sep 25 '16 at 05:21
-
@dev85 did you able to resolve your problem if yes what solution you found – vinod Jan 03 '19 at 21:51
2 Answers
1
A bot cannot possibly read messages without adding the bot to a group, as that would be a security and privacy issue. You can, however, make it slightly harder for people to notice by making sure not to have any commands listed with @botFather. See this answer.
-
Thank you for being helpful :). I don't see bot being a security breach because as I mentioned I have full access to messages. I mean I can set up a clicker that will copy all incoming messages. I just thought there is some better way, maybe a possibility to login with my account from java and get the messages with some request. Maybe turn my account into a bot :P. Thanks again. – dev85 Sep 23 '16 at 07:53
-
Or Maybe achieve the same using only telegram API with username and password. – dev85 Sep 23 '16 at 08:02
-
Oh! By mentioning a bot you sort of limited my thought process there... That should definitely be possible... – Menasheh Sep 25 '16 at 00:32
-
-
All or most of the clients are open sourced, you can find a list [here](https://telegram.org/apps#source-code). You just need to find the code that gets messages and add whatever you want there. – Menasheh Sep 25 '16 at 21:09
1
Why you wont try to add a bot to group?
https://telegram.me/[botname]?startgroup=foo

T.Todua
- 53,146
- 19
- 236
- 237