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

How to forward a message to a specific topic in other groups. please help me #679

Closed
x95555 opened this issue Apr 12, 2024 · 4 comments
Closed

Comments

@x95555
Copy link

x95555 commented Apr 12, 2024

I tried this, but it didn't work

		topic, err := c.Bot().CreateTopic(&tele.Chat{ID: chatID}, &tele.Topic{Name: "OrderNum"})
		_, err = c.Bot().Forward(&tele.Chat{ID:chatID}, c.Message())
@ghost
Copy link

ghost commented Apr 22, 2024

@x95555 This is not implemented at the telegram API level. You can neither copy nor forward a message from a super chat (chat with topics)

@x95555
Copy link
Author

x95555 commented May 6, 2024

Thank you. Maybe I didn't express it clearly. What I need is to forward the message to a fixed topic in a group, not to forward the topic message.

@ghost
Copy link

ghost commented May 6, 2024

Thank you. Maybe I didn't express it clearly. What I need is to forward the message to a fixed topic in a group, not to forward the topic message.

So just specify message_thread_id (ThreadId in the structure) and that's it. The theme ID can be found in the web version

@x95555
Copy link
Author

x95555 commented May 8, 2024

Thank you. Maybe I didn't express it clearly. What I need is to forward the message to a fixed topic in a group, not to forward the topic message.

So just specify message_thread_id (ThreadId in the structure) and that's it. The theme ID can be found in the web version

Yes. I checked the update, and there is this field in json, but it was not parsed into the structure, which caused the error. I customized it and solved it.

@x95555 x95555 closed this as completed May 8, 2024
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

1 participant