aiogram_calendar icon indicating copy to clipboard operation
aiogram_calendar copied to clipboard

This is not works with aiogram 3

Open lev007-ops opened this issue 3 years ago • 4 comments

This is not works with aiogram 3, how to fix it?

lev007-ops avatar Aug 29 '22 12:08 lev007-ops

was not using v3 yet, will check this week

noXplode avatar Aug 29 '22 12:08 noXplode

@lev007-ops checked v3, its not backwards compatible to v2, a lot of changes to classes, both calendars & example must be changed for v3 I`ll create v3 version, but have no estimations when

noXplode avatar Aug 31 '22 20:08 noXplode

@noXplode, хорошо

lev007-ops avatar Sep 01 '22 15:09 lev007-ops

@noXplode, Okay. I hope it will be fast. It's just that my telegram bot works with your calendar and I transfer it to aiogram 3x

lev007-ops avatar Sep 01 '22 15:09 lev007-ops

@noXplode,Hi. Have you tried transferring it to aiogram 3?

lev007-ops avatar Oct 25 '22 09:10 lev007-ops

@noXplode,Hi. Have you tried transferring it to aiogram 3?

I made a fork for aiogram 3

Instalation

pip install aiogram3_calendar Repository is here

o-murphy avatar Dec 05 '22 16:12 o-murphy

@noXplode, хорошо

You can create another branch for aiogram 3 from you master branch and after you can make pull request from my fork, so you'll have versions compatible with aiogram 2 and aiogram 3 in the same time. Also you can clone my repo to your master branch and made validation in you init.py file to import required version automaticaly

o-murphy avatar Dec 05 '22 16:12 o-murphy

Hello, thanks

lev007-ops avatar Dec 05 '22 17:12 lev007-ops

HJello! Try to use :

@disp.callback_query_handler(simple_cal_callback.filter()) async def process_simple_calendar(query: CallbackQuery, data: dict): selected, date = await SimpleCalendar().process_selection(query=query, data=data ) if selected: await query.message.answer( f"Вы выбрали: {date.strftime('%d.%m.%Y')}", reply_markup=ReplyKeyboardRemove() ) process_simple_calendar never handle the calendar. What I'm doing wrong?

ghost avatar Mar 23 '23 11:03 ghost

I also made a fork for aiogram 3.0.0b7 (3.0.0b8)

pip install aiogram3b8-calendar

fluffur avatar Jun 19 '23 12:06 fluffur

upgraded to aiogram v3, also added some new features - today & cancel button, overridable labels (allows translation to any language)

noXplode avatar Nov 19 '23 21:11 noXplode