flymedllva/Telebot-Calendar

issue with selecting month when at month calendar

DenysYurchenko24 opened this issue · 0 comments

Line 220 in telebot_calendar.py

month[0], callback_data=calendar_callback.new("MONTH", year, i + 1, "!")

should probably be replaced with

month[0], callback_data=calendar_callback.new("MONTH", year, 2*i + 1, "!")

Otherwise, we're getting wrong callback data (wrong months' indexes) for the whole left column in the month calendar (except Jan).