a chat? something like
.getChat(-10xxxxx)?.hasTopic(xxx)
oh damn, i am so sleepy i forgot to place a reply to your message in my answer. Just using this to ping you since you don't have an username
Oh thanks... the second way, maybe editing the forum topic... Another doubt... can't bots pin posts inside topics? 😐
I have an idea on how to do that with normal bot api but im not sure if it works. Il try testing today if I still have enough power left inside me
oh please share if you got any result, btw, really thanks for the reply
Yep, managed to (photo 1) When you receive an update you have message_id attribute (photo 2). Just pass it to pinChatMessage and it will pin it in a topic where message was sent!
I'm using Grammy, I tried to do a simile but didn't work
Well I can try and help with it tomorrow. I am done for today, sorry 😅 For now you can send your piece of code that you were trying. Don't forget to remove token if it contains it. P.s. I recommend sending codes via gist.github.com
Don't worry, you've helped me a lot
https://gist.github.com/hojas-adrian/5acb7245768a52bd3368cc819d5d6399
Well, doing this example I saw that it pin the messages, but not the first one, and I couldn't change the name because I don't know how to recover the original
Обсуждают сегодня