telegram.location module

This module contains an object that represents a Telegram Location.

class telegram.location.Location(longitude, latitude, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Location.

longitude

float

latitude

float

Parameters:
  • longitude (float) –
  • latitude (float) –
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Location