V
V
Valery Zhmyshenko2020-06-10 18:57:48
Python
Valery Zhmyshenko, 2020-06-10 18:57:48

How can a bot get a link in a message from a pytelegrambotapi user?

Hello! I ran into a problem: how can a bot get a link in a message from a user? Searched the entire internet. I can make /komanda and link here, but I think it's a huge crutch

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav the Wise, 2020-08-26
@yungtitanium

message_link = f't.me/{update.message.chat.username}/{update.message.message_id}'

Works only in public groups that have a link in the form "t.me/GROUPUSERNAME"

S
soremix, 2020-06-10
@SoreMix

And what is needed then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question