Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/tgclient/startup/extend/client_holding.py

34 lines
594 B

# coding:utf-8
# func: 自动邀请群成员
import sys
import io
import os
import time
import re
import json
import base64
import threading
import asyncio
sys.path.append(os.getcwd() + "/class/core")
import mw
2 years ago
from telethon import utils
# 指定群ID
chat_id = -953760154
async def run(client):
2 years ago
info = await client.get_dialogs()
for chat in info:
if chat.is_group:
print('name:{0} ids:{1} is_user:{2} is_channel{3} is_group:{4}'.format(
chat.name, chat.id, chat.is_user, chat.is_channel, chat.is_group))
if __name__ == "__main__":
pass