telegrinder 0.2.0.post1__py3-none-any.whl → 0.2.0.post2__py3-none-any.whl

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.

Potentially problematic release.


This version of telegrinder might be problematic. Click here for more details.

@@ -26,6 +26,11 @@ class KeyboardModel:
26
26
  keyboard: list[list[DictStrAny]]
27
27
 
28
28
 
29
+
30
+ def copy_keyboard(keyboard: list[list[DictStrAny]]) -> list[list[DictStrAny]]:
31
+ return [row.copy() for row in keyboard]
32
+
33
+
29
34
  class ABCMarkup(ABC, typing.Generic[ButtonT]):
30
35
  BUTTON: type[ButtonT]
31
36
  keyboard: list[list[DictStrAny]]
@@ -73,7 +78,7 @@ class ABCMarkup(ABC, typing.Generic[ButtonT]):
73
78
  return copy_keyboard
74
79
 
75
80
  def merge(self, other: typing.Self) -> typing.Self:
76
- self.keyboard.extend(other.keyboard)
81
+ self.keyboard.extend(copy_keyboard(other.keyboard))
77
82
  return self
78
83
 
79
84
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: telegrinder
3
- Version: 0.2.0.post1
3
+ Version: 0.2.0.post2
4
4
  Summary: Modern visionary telegram bot framework.
5
5
  Home-page: https://github.com/timoniq/telegrinder
6
6
  License: MIT
@@ -127,7 +127,7 @@ telegrinder/tools/i18n/simple.py,sha256=yiaGtEAaMkrzYV3O7esA2wi3A2n9YyndxKPKp8Fs
127
127
  telegrinder/tools/kb_set/__init__.py,sha256=k1KCQTnvEgJ2y4KlghhJWOh5rccwg_27cs8264NtMmk,156
128
128
  telegrinder/tools/kb_set/base.py,sha256=mbZs-ViUErfSibzyN064IqZp76LBJPg3NB4D9v4VFtg,243
129
129
  telegrinder/tools/kb_set/yaml.py,sha256=glk27r0L9Y8ibaPmTHMAEJZw-ED-ehmSo_NdJNKkrNs,2007
130
- telegrinder/tools/keyboard.py,sha256=3zaBOMWMV5rPQg6BsLI7S_6_Nhyl2yKosFCbQAk9GzM,3684
130
+ telegrinder/tools/keyboard.py,sha256=bEC7NqLcuYIxH6CPBH8oykXD5Ud-CuTpl035FlK5SEc,3825
131
131
  telegrinder/tools/limited_dict.py,sha256=tb1WT4P3Oia5CsCBXTHzlFjrPnIgf9eHCkQ0zhAbEUg,1078
132
132
  telegrinder/tools/loop_wrapper/__init__.py,sha256=ZQ5jmE1lOKnqJlMZ9k2OYmjvOEhOlHPijUWqZ4nHIgk,165
133
133
  telegrinder/tools/loop_wrapper/abc.py,sha256=ET_Dp-kRz75Jo1fZB3qofUgEXN4FqlU0xH2diESKGCM,266
@@ -139,7 +139,7 @@ telegrinder/types/enums.py,sha256=q9URlXZvrjOUQKpLfV6v9uspBcLrdW0gtU-m8YDnj7w,19
139
139
  telegrinder/types/methods.py,sha256=Ah7DVfyb99EJzYHCX9feW9hIGBYcnHLKEzu5MUp4rvg,201058
140
140
  telegrinder/types/objects.py,sha256=6bN1BsYZ-Kmh1GcXgtumfZvvLJqxjjjJ9OzyfqBtGZM,244504
141
141
  telegrinder/verification_utils.py,sha256=X7N0mHoOzbcYeKa5XxI_EFhmEGX5XNU3qqgbV8YRRa4,987
142
- telegrinder-0.2.0.post1.dist-info/LICENSE,sha256=Q0tKgU8mPOCQAkc6m__BrNIpRge8mPBQJDd59s21NZo,1095
143
- telegrinder-0.2.0.post1.dist-info/METADATA,sha256=ZiwHcxyFzZpzqE79SKMqsRRbI4EDXyoCpdGpv82lHIg,3008
144
- telegrinder-0.2.0.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
145
- telegrinder-0.2.0.post1.dist-info/RECORD,,
142
+ telegrinder-0.2.0.post2.dist-info/LICENSE,sha256=Q0tKgU8mPOCQAkc6m__BrNIpRge8mPBQJDd59s21NZo,1095
143
+ telegrinder-0.2.0.post2.dist-info/METADATA,sha256=bKp_kZ28oIvDegWbLKZQw1o8imRU0LyO85H19q1XAOg,3008
144
+ telegrinder-0.2.0.post2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
145
+ telegrinder-0.2.0.post2.dist-info/RECORD,,