Hi can I check if an specific topic exist in

a chat? something like

.getChat(-10xxxxx)?.hasTopic(xxx)

11 ответов

13 просмотров

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

Elv- Автор вопроса
s0m31 🇷🇺
oh damn, i am so sleepy i forgot to place a reply ...

Oh thanks... the second way, maybe editing the forum topic... Another doubt... can't bots pin posts inside topics? 😐

Elv
Oh thanks... the second way, maybe editing the for...

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

Elv- Автор вопроса
s0m31 🇷🇺
I have an idea on how to do that with normal bot a...

oh please share if you got any result, btw, really thanks for the reply

Elv
oh please share if you got any result, btw, really...

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!

Elv- Автор вопроса

I'm using Grammy, I tried to do a simile but didn't work

Elv
I'm using Grammy, I tried to do a simile but didn'...

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

Elv- Автор вопроса
Elv- Автор вопроса
s0m31 🇷🇺
Well I can try and help with it tomorrow. I am don...

https://gist.github.com/hojas-adrian/5acb7245768a52bd3368cc819d5d6399

Elv- Автор вопроса
Elv
https://gist.github.com/hojas-adrian/5acb7245768a5...

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

Похожие вопросы

Карта сайта