telegram_libs 0.1.33__tar.gz → 0.1.35__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: telegram_libs
3
- Version: 0.1.33
3
+ Version: 0.1.35
4
4
  Summary: Common libraries for Telegram bots
5
5
  Author: Andrey Gritsaenko gricaenko.95a@gmail.com
6
6
  Requires-Python: >=3.11,<4.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "telegram_libs"
3
- version = "0.1.33"
3
+ version = "0.1.35"
4
4
  description = "Common libraries for Telegram bots"
5
5
  authors = ["Andrey Gritsaenko gricaenko.95a@gmail.com"]
6
6
  readme = "README.md"
@@ -32,7 +32,7 @@ async def get_subscription_keyboard(update: Update, lang: str) -> InlineKeyboard
32
32
  await update.message.reply_text(
33
33
  t("subscription.info", lang, common=True).format(BOTS_AMOUNT - 1)
34
34
  )
35
- return [
35
+ return InlineKeyboardMarkup([
36
36
  [
37
37
  InlineKeyboardButton(
38
38
  t("subscription.plans.1month", lang, common=True), callback_data="sub_1month"
@@ -46,7 +46,7 @@ async def get_subscription_keyboard(update: Update, lang: str) -> InlineKeyboard
46
46
  t("subscription.plans.1year", lang, common=True), callback_data="sub_1year"
47
47
  ),
48
48
  ],
49
- ]
49
+ ])
50
50
 
51
51
 
52
52
  async def more_bots_list_command(update: Update, context: ContextTypes.DEFAULT_TYPE, bot_logger: BotLogger) -> None:
@@ -86,6 +86,8 @@ class RateLimitManager:
86
86
  "last_action_date": datetime.now().isoformat(),
87
87
  },
88
88
  )
89
+ user_data["actions_today"] = 0
90
+ user_data["last_action_date"] = datetime.now().isoformat()
89
91
  return True, user_data
90
92
 
91
93
  # Check if user has exceeded the limit
File without changes
File without changes