Temporarily remove ttl check in inline units to fix config

pull/1/head
hikariatama 2022-06-12 17:30:37 +00:00
parent fd749d3189
commit 6f7fde5e6a
3 changed files with 0 additions and 12 deletions

View File

@ -216,10 +216,6 @@ class Form(InlineUnit):
logger.error("Invalid type for `ttl`")
return False
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
ttl = None
logger.debug("Defaulted ttl, because it breaks out of limits")
if isinstance(message, Message) and not silent:
try:
status_message = await (

View File

@ -134,10 +134,6 @@ class Gallery(InlineUnit):
logger.error("Invalid type for `ttl`")
return False
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
ttl = self._markup_ttl
logger.debug("Defaulted ttl, because it breaks out of limits")
if isinstance(next_handler, list):
if all(isinstance(i, str) for i in next_handler):
next_handler = ListGalleryHelper(next_handler)

View File

@ -141,10 +141,6 @@ class List(InlineUnit):
logger.error("Invalid type for `ttl`")
return False
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
ttl = self._markup_ttl
logger.debug("Defaulted ttl, because it breaks out of limits")
unit_id = utils.rand(16)
btn_call_data = {key: utils.rand(10) for key in {"back", "next", "close"}}