Bot::ChatBots::Telegram::Role::Source - Telegram Source Role
package Some::Thing; use Moo; with 'Bot::ChatBots::Telegram::Role::Source'; ...
This role is meant to be consumed by Bot::ChatBots::Telegram::WebHook and Bot::ChatBots::Telegram::LongPoll.
This role defines the accessors in the following subsections.
my $token = $obj->token; $obj->token($ENV{TOKEN});
Accessor for the token, used to access the Telegram service remotely. This also has an associated predicate function "has_token".
This method defines the methods in the following subsections.
say 'yes!' if $obj->has_token;
Predicate function to assess whether a "token" is present or not.
my $record = $self->normlize_record($input_record);
Perform some normalization on the record to give it a more "general" shape. Which is still in a state of flux.
Bot::ChatBots.
Flavio Poletti <polettix@cpan.org>
Copyright (C) 2016 by Flavio Poletti <polettix@cpan.org>
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Bot::ChatBots::Telegram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::ChatBots::Telegram
CPAN shell
perl -MCPAN -e shell install Bot::ChatBots::Telegram
For more information on module installation, please visit the detailed CPAN module installation guide.