Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot api 6.4 Topics support. #622

Open
Hamper opened this issue Dec 31, 2022 · 6 comments
Open

Bot api 6.4 Topics support. #622

Hamper opened this issue Dec 31, 2022 · 6 comments

Comments

@Hamper
Copy link

Hamper commented Dec 31, 2022

Telegram bot api have new topics in chats, without this logic bots can't properly respond to chats with topics.

@rikosage
Copy link

+1

3 similar comments
@oneart-dev
Copy link

+1

@marcozaccari
Copy link

+1

@endvvell
Copy link

+1

@endvvell
Copy link

endvvell commented May 15, 2023

I'll just leave my quick and ugly temporary solution here on how to send messages to the different topics with the current state of this package, just in case someone might find it helpful: https://go.dev/play/p/7w6uMC6XB3P

It appears adding this functionality to the package would be as easy as adding ThreadID int to the BaseChat and BaseEdit structs in configs.go file and adding something like
params.AddNonZero("message_thread_id", chat.ThreadID) to the BaseChat implementation of params() method
&
params.AddNonZero("message_thread_id", edit.ThreadID) to the BaseEdit implementation of params() method

But surely it's more than that and we'll just have to wait for someone with some spare time to go over this.

@Gleb-ho
Copy link

Gleb-ho commented Jul 8, 2023

#663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants