NAME

Telegram::Bot::Object::Base - The base class for all Telegram::Bot::Object objects.

VERSION

version 0.026

DESCRIPTION

This class should not be instantiated itself. Instead, instantiate a sub-class.

You should generally not need to instantiate objects of sub-classes of Telegram::Bot::Object::Base, instead the appropriate objects will be created from an incoming request via Telegram::Bot::Brain.

You can then use the methods referenced below on those objects.

METHODS

arrays

Should be overridden by subclasses, returning an array listing of which fields for the object are arrays.

array_of_arrays

Should be overridden by subclasses, returning an array listing od which fields for the object are arrays of arrays.

create_from_hash

Create an object of the appropriate class, including any sub-objects of other types, as needed.

as_hashref

Return this object as a hashref.

AUTHORS

  • Justin Hawkins <justin@eatmorecode.com>

  • James Green <jkg@earth.li>

  • Julien Fiegehenn <simbabque@cpan.org>

  • Albert Cester <albert.cester@web.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by James Green.

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