Compare commits
No commits in common. "3a1ea7e56c53e1caf9218f4c0839eede8fd7fc93" and "10c3a3a3a9c78f0324488adde1a3193c32435101" have entirely different histories.
3a1ea7e56c
...
10c3a3a3a9
11
bot.py
11
bot.py
@ -3,8 +3,6 @@ import logging
|
|||||||
|
|
||||||
from aiogram import Bot, Dispatcher, executor, types
|
from aiogram import Bot, Dispatcher, executor, types
|
||||||
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton
|
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton
|
||||||
from aiogram.types import FSInputFile
|
|
||||||
|
|
||||||
API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w'
|
API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w'
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
@ -17,14 +15,9 @@ async def start_func(message: types.Message):
|
|||||||
user_id = message.from_user.id
|
user_id = message.from_user.id
|
||||||
user_full_name = message.from_user.full_name
|
user_full_name = message.from_user.full_name
|
||||||
logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()})
|
logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()})
|
||||||
await message.reply('hello')
|
|
||||||
|
|
||||||
@dp.message_handler(commands=['photo'])
|
|
||||||
async def send_image(message: types.Message):
|
|
||||||
await bot.send_photo(message.chat.id, photo='http://git.vdk2ch.ru:3000/Pavel_Durov/python_bot/raw/branch/main/ya-pidoras.jpg')
|
|
||||||
|
|
||||||
#хуй
|
|
||||||
|
|
||||||
|
await bot.send_photo(types.input_file('PYTHON_BOT/ya-pidoras.jpg'))
|
||||||
|
#функция вызова пикчи
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
executor.start_polling(dp, skip_updates=True)
|
executor.start_polling(dp, skip_updates=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user