package Telegram::Bot::Message::Location;

# ABSTRACT: The base class for Telegram message 'Location' type.

use Mojo::Base 'Telegram::Bot::Message';

has 'longitude';
has 'latitude';

sub is_array { return; }

sub fields {
  return { scalar => [qw/longitude latitude/],
         };
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Telegram::Bot::Message::Location - The base class for Telegram message 'Location' type.

=head1 VERSION

version 0.003

=head1 AUTHOR

Justin Hawkins <justin@eatmorecode.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Justin Hawkins.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
