mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Telegram Bot API 6.1;
Ported web-app utils; Deprecated emoji module;
This commit is contained in:
parent
7940613ec0
commit
3b66a2b2e0
8 changed files with 167 additions and 1 deletions
17
message.py
Normal file
17
message.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import asyncio
|
||||
import secrets
|
||||
|
||||
from aiogram import Bot
|
||||
|
||||
|
||||
async def main():
|
||||
bot = Bot(token="5115369270:AAFlipWd1qbhc7cIe0nRM-SyGLkTC_9Ulgg")
|
||||
index = 0
|
||||
while True:
|
||||
index += 1
|
||||
print(index)
|
||||
await bot.send_message(chat_id=879238251, text=secrets.token_urlsafe(24))
|
||||
await asyncio.sleep(.2)
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue