Bots 如何将一个电报频道的成员传送到另一个电报频道

Bots 如何将一个电报频道的成员传送到另一个电报频道,bots,telegram,channel,Bots,Telegram,Channel,我如何将我作为其管理员或组或超级组的电报频道的成员转移到另一个我不是其管理员的电报频道或组? 关于您不能在电报中这样做,请将邀请链接发送到您的团队 如果您有合理的理由,请尝试在应用程序中联系支持者,但没有关于迁移频道的先例。您不能在电报中这样做,请将邀请链接发送到您的组 如果您有合理的理由,请尝试联系应用程序中的支持者,但没有关于迁移频道的先例。您可以使用telethon,它非常简单,而且您有大量的文档 对于你的具体问题 from telethon.tl.functions.channels i

我如何将我作为其管理员或组或超级组的电报频道的成员转移到另一个我不是其管理员的电报频道或组?
关于

您不能在电报中这样做,请将邀请链接发送到您的团队


如果您有合理的理由,请尝试在应用程序中联系支持者,但没有关于迁移频道的先例。

您不能在电报中这样做,请将邀请链接发送到您的组


如果您有合理的理由,请尝试联系应用程序中的支持者,但没有关于迁移频道的先例。

您可以使用telethon,它非常简单,而且您有大量的文档

对于你的具体问题

from telethon.tl.functions.channels import InviteToChannelRequest

client(InviteToChannelRequest(
channel=SomeChannelId, 
users = ['SomeUserName']
))

你可以使用telethon,它非常简单,你有很多文档

对于你的具体问题

from telethon.tl.functions.channels import InviteToChannelRequest

client(InviteToChannelRequest(
channel=SomeChannelId, 
users = ['SomeUserName']
))
我用过telethon:

from telethon import TelegramClient
from telethon.tl.functions.channels import InviteToChannelRequest
from telethon.tl.functions.channels import GetParticipantsRequest
import asyncio

# Use your own values from my.telegram.org
api_id = 12345
api_hash = 'a1a1a1a1a1a1a11'

channel_to_name = 'migrate_to'
channel_from_name = 'migrate_from'
loop = asyncio.get_event_loop()


client = TelegramClient('anon', api_id, api_hash)
loop.run_until_complete(client.connect())
channel_from = loop.run_until_complete(client.get_entity(channel_from_name))
channel_to = loop.run_until_complete(client.get_entity(channel_to_name))
users = client.iter_participants(channel_from)
users_arr = []
for user in users:
    users_arr.append(user)
loop.run_until_complete(client(InviteToChannelRequest(
        channel_to,
        users_arr
    )))
我用过telethon:

from telethon import TelegramClient
from telethon.tl.functions.channels import InviteToChannelRequest
from telethon.tl.functions.channels import GetParticipantsRequest
import asyncio

# Use your own values from my.telegram.org
api_id = 12345
api_hash = 'a1a1a1a1a1a1a11'

channel_to_name = 'migrate_to'
channel_from_name = 'migrate_from'
loop = asyncio.get_event_loop()


client = TelegramClient('anon', api_id, api_hash)
loop.run_until_complete(client.connect())
channel_from = loop.run_until_complete(client.get_entity(channel_from_name))
channel_to = loop.run_until_complete(client.get_entity(channel_to_name))
users = client.iter_participants(channel_from)
users_arr = []
for user in users:
    users_arr.append(user)
loop.run_until_complete(client(InviteToChannelRequest(
        channel_to,
        users_arr
    )))