如何使用Telethon在电报上发送骰子/slotmachine表情符号?

发布于 2025-01-23 18:29:34 字数 135 浏览 0 评论 0原文

我正在从事一个项目,我的客户想通过API发送该骰子/Slotmachine表情符号(动画)。

我目前正在使用Telethon Python,但无法弄清楚如何发送。当我尝试发送时,它会发送静态。但是我需要发送动画。

有什么想法吗?

I'm working on a project and my client wants to send that dice/slotmachine emoji (animated one) via API.

I'm currently using telethon python but cannot figure how to send it. When I try sending, it sends the static one. But I need to send the animated one.

Any thoughts ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶底世界 2025-01-30 18:29:34

也许您可以尝试使用Proragram:

安装:

pip3 install -U pyrogram

用法:

import asyncio
from pyrogram import Client

def send_dice(name):
    async def main():
        async with Client(session_file, api_id, api_hash, proxy=my_proxy) as app:
            await app.send_dice(name)
    asyncio.run(main())

Maybe you can try Pyrogram:

installation:

pip3 install -U pyrogram

usage:

import asyncio
from pyrogram import Client

def send_dice(name):
    async def main():
        async with Client(session_file, api_id, api_hash, proxy=my_proxy) as app:
            await app.send_dice(name)
    asyncio.run(main())
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文