コード例 #1
0
ファイル: www.py プロジェクト: 7DSMeliodas/Userbot
def neardc(bot: BOT, message: Message):
    dc = BOT.send(
        functions.help.GetNearestDc())
    message.edit(
        NearestDC.format(
            dc.country,
            dc.nearest_dc,
            dc.this_dc))
コード例 #2
0
def GetCommon(get_user):
    common = BOT.send(
        functions.messages.GetCommonChats(user_id=BOT.resolve_peer(get_user),
                                          max_id=0,
                                          limit=0))
    return common