Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Button for channel's comment section using Python Telegram Bot

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:

  1. post is created, and gets forwarded to the discussion group.
  2. bot receives the update and checks whether it was auto-forwarded from the linked channel.
  3. 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)

About

Re-adds the "leave a comment" link as a button to Telegram channel posts that use inline buttons, via python-telegram-bot.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages