InlineQueryResult

class telegram.InlineQueryResult(type, id, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

Baseclass for the InlineQueryResult* classes.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their id is equal.

Note

All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.

Examples

Inline Bot

Parameters:
  • type (str) – Type of the result.

  • id (str) – Unique identifier for this result, 1- 64 Bytes.

type[source]

Type of the result.

Type:

str

id[source]

Unique identifier for this result, 1- 64 Bytes.

Type:

str

MAX_ID_LENGTH = 64[source]

telegram.constants.InlineQueryResultLimit.MAX_ID_LENGTH

New in version 20.0.

MIN_ID_LENGTH = 1[source]

telegram.constants.InlineQueryResultLimit.MIN_ID_LENGTH

New in version 20.0.