forked from HonusBot/HonusBot
Aggiornare 'inline.py'
This commit is contained in:
parent
db8bac435f
commit
aa1c165117
38
inline.py
38
inline.py
@ -68,27 +68,27 @@ class InlineBot:
|
||||
|
||||
def makeResult(self, qTitle, qMode, qDesc, qValue):
|
||||
if qMode == "text":
|
||||
return InlineQueryResultArticle(
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("<a href=\"" + qValue + "\">HonusBot</a>", "HTML"),
|
||||
description=qDesc
|
||||
)
|
||||
return InlineQueryResultArticle(
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("<a href=\"" + qValue + "\">HonusBot</a>", "HTML"),
|
||||
description=qDesc
|
||||
)
|
||||
if qMode == "image":
|
||||
return InlineQueryResultArticle(
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("<a href=\"" + qValue + "\">Scherzo del rasoio</a>", "HTML"),
|
||||
description=qDesc
|
||||
)
|
||||
return InlineQueryResultArticle(
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("<a href=\"" + qValue + "\">Scherzo del rasoio</a>", "HTML"),
|
||||
description=qDesc
|
||||
)
|
||||
return InlineQueryResultArticle(
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("Unknown result type!", "HTML"),
|
||||
description=qDesc
|
||||
id=uuid.uuid4().hex,
|
||||
type="article",
|
||||
title=qTitle,
|
||||
input_message_content=InputTextMessageContent("Unknown result type!", "HTML"),
|
||||
description=qDesc
|
||||
)
|
||||
|
||||
def inlineQuery(self, update, context):
|
||||
|
Loading…
Reference in New Issue
Block a user