def neardc(bot: BOT, message: Message): dc = BOT.send( functions.help.GetNearestDc()) message.edit( NearestDC.format( dc.country, dc.nearest_dc, dc.this_dc))
def GetCommon(get_user): common = BOT.send( functions.messages.GetCommonChats(user_id=BOT.resolve_peer(get_user), max_id=0, limit=0)) return common