Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

[Question] Send Message URL Scheme Group chat?

Open DavydeVries opened this issue 4 years ago • 5 comments

I know you can use tg://msg?text={{SOMETEXT}}&to={{PHONENUMBER}}

Is there an option to send a message to a group by id or something? For example: tg://msg?text={{SOMETEXT}}&to={{GROUP_ID}} I like to use this in Shortcuts (iOS)

DavydeVries avatar Jan 11 '21 12:01 DavydeVries

I found that tg://msg?text={{SOMETEXT}}&to=@USERID works for individual accounts that don't have a phone number (like bots), maybe the same would work for groups if you have the group ID? (I haven't tested this.)

kerim avatar May 06 '21 01:05 kerim

Is there a way to send the message automatically? Current it open and I have to press send.

Rhino4293 avatar May 06 '21 13:05 Rhino4293

Not that I can figure out, but that would be great!

kerim avatar May 06 '21 13:05 kerim

I found that tg://msg?text={{SOMETEXT}}&to=@userid works for individual accounts that don't have a phone number (like bots), maybe the same would work for groups if you have the group ID? (I haven't tested this.)

Hey @kerim, I'm trying this (tg://msg?text={{SOMETEXT}}&to=@userid), but is not working. Can you give me some light?

alextnetto avatar Feb 07 '23 19:02 alextnetto

@Alextnetto Sorry, I haven't been using Telegram the past two years...

kerim avatar Feb 08 '23 00:02 kerim