Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

How can I view user reactions on my posts as an admin in a Telegram channel

$
0
0

I want to see members reaction in telegram channel

I am admin of telegram channeland I have enabled users reaction to my posts.Telegram does not show which user sent which reaction.I am looking for a way to see it.I want me only as admin see which user is send which reaction to my posts.for example user @david has send 👍

I already have this code but it is not working. If I press start and stop on bot nothing happens.

import telebotbot = telebot.TeleBot("YOUR_BOT_TOKEN")def get_reactions(message):    for reaction in message.reactions:        user = reaction.user        print(f"User {user.username} reacted with {reaction.emoji} to my post.")bot.polling()while True:    for update in bot.get_updates():        message = update.message        get_reactions(message)@bot.message_handler(commands=["start"])def start(message):    bot.send_message(message.chat.id, "Code is running")

Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>