I use a user bot in pyrogram to save links from a bot to a personal channel. I use this code:
def forwardlik(mensaje)
if "Link!" in mensaje.text:
mensaje.forward(ids["channel"])
But now the bot it’s sending the link with a button inline and I don’t know how to make the program press the button and send only the link to my channel.
Someone can help me?
2
Answers
you can take the var x and forward it to another channel
Late to the party, but…
You can use the Message bound method
click()
to get a string in case the button is a url.