textSend = ""
for chatMem in app.get_chat_members(msg.chat.id):
textSend += chatMem.user.username + "\n"
bot.send_message(msg.chat.id, textSend)
# Get first 200 recent members
app.get_chat_members(chat_id)
# Get all administrators
app.get_chat_members(chat_id, filter="administrators")
# Get all bots
app.get_chat_members(chat_id, filter="bots")
for chatMem in bot.get_chat_members(chat_id):
bot.send_message(message.chat.id, chatMem.user.username)
bot.send_message(bot.chat.get_members(),'Вот они')
while d == 1:
e = []
await bot.send_photo(message.chat.id, open("pasito.jpg", "rb"), 'Smoant Pasito 1 \n Цена: 3650Р \n Аккумулятор: 1100 мАч \n Напряжение 3,2B - 4,2B \n Объем 3мл.')
user = User(cur).load(message.from_user.id)
user.avatar = message.photo[-1].file_id
user = User(cur).load(tgId)
caption += user.eventName + "\n\n" + user.about
await bot.send_photo(PUBLICCHANNEL, user.avatar, caption, "HTML")
await bot.send_photo(user, open('lzt.jpg', 'rb'), message.text[message.text.find(' '):])