people_id = message.chat.id
conn = sqlite3.connect("usersmm.db")
cursor = conn.cursor()
cursor.execute(f"SELECT id FROM login_id WHERE id = {people_id}")
data = cursor.fetchone()
if data is None:
user_id = [message.chat.id]
cursor.execute("INSERT INTO login_id VALUES(?);", user_id)
conn.commit()
conn.close()
await set_default_commands(bot)
file_g = 'AgACAgIAAxkBAAILe2ajmtoQhlz0HNDG2y5Cg_kxKx_3AAJd4TEbKRIZSWwmHbJxHN2wAQADAgADeQADNQQ'
await message.answer_sticker(sticker="CAACAgIAAxkBAAELZBply7kKaUMHEUTC06qhHdH6OD594AAC70MAAkOuYUrXg0zSKLp-FzQE")
await asyncio.sleep(1)
await message.answer_photo(
photo=file_g,
caption=f"текст",
reply_markup=start_kb,
)
except Exception as e:
logging.exception(e)
Стикер
Обсуждают сегодня