Wie sende ich ein großes Video auf einem Kanal mit einem Telegrammbot?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie sende ich ein großes Video auf einem Kanal mit einem Telegrammbot?

by Anonymous » 19 Feb 2025, 20:07

Hier ist mein Code: < /p>
from telegram import Bot
bot = Bot(
token="XXX"
)

def send_video(chat_id, video_path):
print(f"Sending '{video_path}' to {chat_id}...")
bot.send_video(
chat_id=chat_id,
video=open(video_path, 'rb'),
timeout=10000,
supports_streaming=True,
)
print("Video sent!")
< /code>
Mit dieser Methode kann ich nur Videos bis zu 50 MB hochladen. Was sollte ich tun, um größere Größe von größeren Größe hochzuladen? < /p>
Bearbeiten: Sie können dies tun Ich verstehe einfach nicht, wie: https://core.telegram.org/bots/api#usin ... api-server

Top