class Telegram::API::Venue
- Telegram::API::Venue
- Telegram::API::Type
- Reference
- Object
Overview
This object represents a venue.
Defined in:
telegram/api/generated/types.crConstructors
- .new(location : Location, title : String, address : String, foursquare_id : String | Nil = nil, foursquare_type : String | Nil = nil, google_place_id : String | Nil = nil, google_place_type : String | Nil = nil)
-
.new(pull : JSON::PullParser)
This object represents a venue.
Instance Method Summary
-
#address : String
Address of the venue
-
#address=(address : String)
Address of the venue
-
#foursquare_id : String | Nil
Optional.
-
#foursquare_id=(foursquare_id : String | Nil)
Optional.
-
#foursquare_type : String | Nil
Optional.
-
#foursquare_type=(foursquare_type : String | Nil)
Optional.
-
#google_place_id : String | Nil
Optional.
-
#google_place_id=(google_place_id : String | Nil)
Optional.
-
#google_place_type : String | Nil
Optional.
-
#google_place_type=(google_place_type : String | Nil)
Optional.
-
#location : Location
Venue location.
-
#location=(location : Location)
Venue location.
-
#title : String
Name of the venue
-
#title=(title : String)
Name of the venue
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(location : Location, title : String, address : String, foursquare_id : String | Nil = nil, foursquare_type : String | Nil = nil, google_place_id : String | Nil = nil, google_place_type : String | Nil = nil)
#
Instance Method Detail
def foursquare_type : String | Nil
#
Optional. Foursquare type of the venue. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
def foursquare_type=(foursquare_type : String | Nil)
#
Optional. Foursquare type of the venue. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
def google_place_id=(google_place_id : String | Nil)
#
Optional. Google Places identifier of the venue
def google_place_type : String | Nil
#
Optional. Google Places type of the venue. (See supported types.)
def google_place_type=(google_place_type : String | Nil)
#
Optional. Google Places type of the venue. (See supported types.)