There is this issue, if a channel post has a button, the button cancels channel's easy access to comments thread, by removing "leave a comment" field.
In this repository, i share a small function that creates a button under the post, which opens the relevant contents thread.
The logic is simple:
- post is created, and gets forwarded to the discussion group.
- bot receives the update and checks whether it was auto-forwarded from the linked channel.
- bot edits the original: add a button that points to the post but in discussion group, so that the link can be opened in comments thread.
the example uses: public channel, public discussion group (supergroup)