on-internet
← Community

Python Telegram bot unable to forward photos, stickers, and other media in group chats

Stack Overflow ·

I have a Python bot for forwarding messages (formatted text, photos with captions, videos, stickers) to groups where the bot is added. However, I'm experiencing issues with forwarding photos, stickers, and similar content. How can I fix this? import telebot from telebot.types import Message bot_token = '(I hide it)' ALLOWED_USER_ID = 746422763 bot = telebot.TeleBot(bot_token) def is_bot_in_group(chat_id): with open('groups.txt', 'r') as file: existing_chat_ids = [line.strip() for line in file.readlines()] return str(chat_id) in existing_chat_ids def add_group(chat_id): with open('groups.txt',

Comments

Sign in or sign up to comment and upvote.

No comments yet.