Open aminvakil opened 5 years ago
@aminvakil you need to store somewhere the information about pinned messages to unpin it. It's not possible right now.
@ableev for use pinchatmessage need save message_id.
I think it posebly. Maybe over save tag (or flag) in zbx_tg_tmp_dir.
zbxtg;tag_act
zbxtg;save_mesg
and next step in action
zbxtg;tag_act
zbxtg;pin_mesg
Tag tag_act
should be unique for action.
Forgive me if it's something that I need to learn from telegram api myself, but I wonder how can I pin a message in supergroups using this method:
https://core.telegram.org/bots/api#pinchatmessage
How can I get id of my chat to pin it?
And further just pin it if it's a problem and when it gets resolved unpin message using this method:
https://core.telegram.org/bots/api#unpinchatmessage
Of course I have administrator rights in the group.