例子:
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
BOT_TOKEN = 'Your bot token here'
bot = Bot(token=BOT_TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def send_welcome(message: types.Message):
chat_id = message.chat.id
await bot.send_message(chat_id=chat_id, text='Hello, World!')
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)