From 57120eb461ecda0a3a14c5ff67eba01621ce9cb6 Mon Sep 17 00:00:00 2001 From: eleksir Date: Sat, 7 Nov 2020 17:49:24 +0300 Subject: [PATCH] Bump ver in Teapot::Bot 0.021 -> 0.022 and clenup modules - Remove Encode module from cpanfile and telegrambot.pm + Add Mojo::IOLoop, Mojo::UserAgent, IO::Socket::SSL * Sort cpanfile * Bump version Teapot::Bot 0.021 -> 0.022 * Add aleesa-telegram-bot.pid to .gitignore --- .gitignore | 1 + cpanfile | 19 ++++++++++++------- lib/Teapot/Bot.pm | 4 ++-- lib/Teapot/Bot/Brain.pm | 4 ++-- lib/Teapot/Bot/Object/Animation.pm | 4 ++-- lib/Teapot/Bot/Object/Audio.pm | 4 ++-- lib/Teapot/Bot/Object/Base.pm | 4 ++-- lib/Teapot/Bot/Object/CallbackGame.pm | 4 ++-- lib/Teapot/Bot/Object/Chat.pm | 4 ++-- lib/Teapot/Bot/Object/ChatMember.pm | 4 ++-- lib/Teapot/Bot/Object/ChatPermissions.pm | 4 ++-- lib/Teapot/Bot/Object/ChatPhoto.pm | 4 ++-- lib/Teapot/Bot/Object/Contact.pm | 4 ++-- lib/Teapot/Bot/Object/Document.pm | 4 ++-- lib/Teapot/Bot/Object/EncryptedCredentials.pm | 4 ++-- .../Bot/Object/EncryptedPassportElement.pm | 4 ++-- lib/Teapot/Bot/Object/Game.pm | 4 ++-- lib/Teapot/Bot/Object/InlineKeyboardButton.pm | 4 ++-- lib/Teapot/Bot/Object/InlineKeyboardMarkup.pm | 4 ++-- lib/Teapot/Bot/Object/Invoice.pm | 4 ++-- lib/Teapot/Bot/Object/Location.pm | 4 ++-- lib/Teapot/Bot/Object/LoginUrl.pm | 4 ++-- lib/Teapot/Bot/Object/Message.pm | 4 ++-- lib/Teapot/Bot/Object/MessageEntity.pm | 4 ++-- lib/Teapot/Bot/Object/PassportData.pm | 4 ++-- lib/Teapot/Bot/Object/PhotoSize.pm | 4 ++-- lib/Teapot/Bot/Object/Poll.pm | 4 ++-- lib/Teapot/Bot/Object/PollOption.pm | 4 ++-- lib/Teapot/Bot/Object/Sticker.pm | 4 ++-- lib/Teapot/Bot/Object/SuccessfulPayment.pm | 4 ++-- lib/Teapot/Bot/Object/User.pm | 4 ++-- lib/Teapot/Bot/Object/Venue.pm | 4 ++-- lib/Teapot/Bot/Object/Video.pm | 4 ++-- lib/Teapot/Bot/Object/VideoNote.pm | 4 ++-- lib/Teapot/Bot/Object/Voice.pm | 4 ++-- lib/telegrambot.pm | 1 - 36 files changed, 79 insertions(+), 74 deletions(-) diff --git a/.gitignore b/.gitignore index 15278e7..b8af58e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ data/config.json data/cache data/telegrambot-brains data/lat +aleesa-telegram-bot.pid TODO \ No newline at end of file diff --git a/cpanfile b/cpanfile index d8ba0a8..e4948d3 100644 --- a/cpanfile +++ b/cpanfile @@ -1,17 +1,22 @@ requires 'Carp'; -requires 'Log::Any'; -requires 'List::Util'; requires 'Cwd::utf8'; requires 'DB_File'; requires 'Digest::MD5'; -requires 'Encode'; +requires 'Data::Dumper'; requires 'File::Basename'; requires 'File::Path'; -requires 'HTTP::Tiny'; requires 'Hailo'; +requires 'HTTP::Tiny'; +requires 'IO::Socket::SSL'; requires 'JSON'; -requires 'JSON::XS'; requires 'JSON::PP'; -requires 'Mojo::Base'; -requires 'URI::URL'; +requires 'JSON::XS'; +requires 'List::Util'; requires 'local::lib'; +requires 'Log::Any'; +requires 'Mojo::Base'; +requires 'Mojo::IOLoop'; +requires 'Mojo::UserAgent'; +#requires 'Telegram::Bot'; +#requires 'Test::Exception'; +requires 'URI::URL'; diff --git a/lib/Teapot/Bot.pm b/lib/Teapot/Bot.pm index 5d6e8ed..d4aef84 100644 --- a/lib/Teapot/Bot.pm +++ b/lib/Teapot/Bot.pm @@ -2,7 +2,7 @@ package Teapot::Bot; use strict; use warnings; -$Teapot::Bot::VERSION = '0.021'; +$Teapot::Bot::VERSION = '0.022'; # ABSTRACT: A base class to make your very own Telegram bot 1; @@ -23,7 +23,7 @@ A base class to make your very own Telegram bot =head1 VERSION -version 0.021 +version 0.022 =head1 SYNOPSIS diff --git a/lib/Teapot/Bot/Brain.pm b/lib/Teapot/Bot/Brain.pm index 5adbf66..49a128d 100644 --- a/lib/Teapot/Bot/Brain.pm +++ b/lib/Teapot/Bot/Brain.pm @@ -18,7 +18,7 @@ use Data::Dumper; use Teapot::Bot::Object::Message; -$Teapot::Bot::Brain::VERSION = '0.021'; +$Teapot::Bot::Brain::VERSION = '0.022'; # base class for building telegram robots with Mojolicious has longpoll_time => 60; @@ -399,7 +399,7 @@ Teapot::Bot::Brain - A base class to make your very own Telegram bot =head1 VERSION -version 0.021 +version 0.022 =head1 SYNOPSIS diff --git a/lib/Teapot/Bot/Object/Animation.pm b/lib/Teapot/Bot/Object/Animation.pm index c202017..c7e3670 100644 --- a/lib/Teapot/Bot/Object/Animation.pm +++ b/lib/Teapot/Bot/Object/Animation.pm @@ -5,7 +5,7 @@ use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PhotoSize; use Carp qw/croak/; -$Teapot::Bot::Object::Animation::VERSION = '0.021'; +$Teapot::Bot::Object::Animation::VERSION = '0.022'; has 'file_id'; has 'width'; @@ -37,7 +37,7 @@ Teapot::Bot::Object::Animation - The base class for Telegram message 'Animation' =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'Animation' type. diff --git a/lib/Teapot/Bot/Object/Audio.pm b/lib/Teapot/Bot/Object/Audio.pm index f629af3..768f772 100644 --- a/lib/Teapot/Bot/Object/Audio.pm +++ b/lib/Teapot/Bot/Object/Audio.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::Audio; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::Audio::VERSION = '0.021'; +$Teapot::Bot::Object::Audio::VERSION = '0.022'; has 'file_id'; has 'duration'; @@ -33,7 +33,7 @@ Teapot::Bot::Object::Audio - The base class for Telegram 'Audio' type objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Audio' type objects. diff --git a/lib/Teapot/Bot/Object/Base.pm b/lib/Teapot/Bot/Object/Base.pm index 2db970d..56eca52 100644 --- a/lib/Teapot/Bot/Object/Base.pm +++ b/lib/Teapot/Bot/Object/Base.pm @@ -5,7 +5,7 @@ use Mojo::Base -base; use List::Util qw/any/; use Carp qw/croak/; -$Teapot::Bot::Object::Base::VERSION = '0.021'; +$Teapot::Bot::Object::Base::VERSION = '0.022'; has '_brain'; # a reference to our brain @@ -135,7 +135,7 @@ Teapot::Bot::Object::Base - The base class for all Telegram::Bot::Object objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION diff --git a/lib/Teapot/Bot/Object/CallbackGame.pm b/lib/Teapot/Bot/Object/CallbackGame.pm index c676def..2310074 100644 --- a/lib/Teapot/Bot/Object/CallbackGame.pm +++ b/lib/Teapot/Bot/Object/CallbackGame.pm @@ -2,7 +2,7 @@ package Teapot::Bot::Object::CallbackGame; # ABSTRACT: The base class for Telegram message 'CallbackGame' type. use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::CallbackGame::VERSION = '0.021'; +$Teapot::Bot::Object::CallbackGame::VERSION = '0.022'; # https://core.telegram.org/bots/api#callbackgame # "A placeholder, currently holds no information. Use BotFather to set up your game" @@ -25,7 +25,7 @@ Teapot::Bot::Object::CallbackGame - The base class for Telegram message 'Callbac =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'CallbackGame' type. diff --git a/lib/Teapot/Bot/Object/Chat.pm b/lib/Teapot/Bot/Object/Chat.pm index 10ad426..3bce868 100644 --- a/lib/Teapot/Bot/Object/Chat.pm +++ b/lib/Teapot/Bot/Object/Chat.pm @@ -6,7 +6,7 @@ use Teapot::Bot::Object::ChatPhoto; use Teapot::Bot::Object::Message; use Teapot::Bot::Object::ChatPermissions; -$Teapot::Bot::Object::Chat::VERSION = '0.021'; +$Teapot::Bot::Object::Chat::VERSION = '0.022'; has 'id'; has 'type'; @@ -59,7 +59,7 @@ Teapot::Bot::Object::Chat - The base class for Telegram 'Chat' type objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Chat' type objects. diff --git a/lib/Teapot/Bot/Object/ChatMember.pm b/lib/Teapot/Bot/Object/ChatMember.pm index 3513ca0..1e5de45 100644 --- a/lib/Teapot/Bot/Object/ChatMember.pm +++ b/lib/Teapot/Bot/Object/ChatMember.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::ChatMember; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::User; -$Teapot::Bot::Object::ChatMember::VERSION = '0.021'; +$Teapot::Bot::Object::ChatMember::VERSION = '0.022'; has 'user'; has 'status'; @@ -50,7 +50,7 @@ Teapot::Bot::Object::ChatMember - The base class for Telegram 'ChatMember' type =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'ChatMember' type objects. diff --git a/lib/Teapot/Bot/Object/ChatPermissions.pm b/lib/Teapot/Bot/Object/ChatPermissions.pm index 24d842f..3763475 100644 --- a/lib/Teapot/Bot/Object/ChatPermissions.pm +++ b/lib/Teapot/Bot/Object/ChatPermissions.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::ChatPermissions; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::ChatPermissions::VERSION = '0.021'; +$Teapot::Bot::Object::ChatPermissions::VERSION = '0.022'; # all fields are optional # N.B. Some of the fields "overlaps" other, so in order to guess valid set of permissions you should check all of them @@ -42,7 +42,7 @@ Teapot::Bot::Object::ChatPermissions - The base class for Telegram 'ChatPermissi =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'ChatPermissions' type objects. diff --git a/lib/Teapot/Bot/Object/ChatPhoto.pm b/lib/Teapot/Bot/Object/ChatPhoto.pm index 1a83dec..c0ea607 100644 --- a/lib/Teapot/Bot/Object/ChatPhoto.pm +++ b/lib/Teapot/Bot/Object/ChatPhoto.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::ChatPhoto; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::ChatPhoto::VERSION = '0.021'; +$Teapot::Bot::Object::ChatPhoto::VERSION = '0.022'; has 'small_file_id'; has 'big_file_id'; @@ -28,7 +28,7 @@ Teapot::Bot::Object::ChatPhoto - The base class for Telegram 'ChatPhoto' type ob =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'ChatPhoto' type objects. diff --git a/lib/Teapot/Bot/Object/Contact.pm b/lib/Teapot/Bot/Object/Contact.pm index ce5eed2..a3aad1a 100644 --- a/lib/Teapot/Bot/Object/Contact.pm +++ b/lib/Teapot/Bot/Object/Contact.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::Contact; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::Contact::VERSION = '0.021'; +$Teapot::Bot::Object::Contact::VERSION = '0.022'; has 'phone_number'; has 'first_name'; @@ -30,7 +30,7 @@ Teapot::Bot::Object::Contact - The base class for Telegram 'Contact' objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Contact' objects. diff --git a/lib/Teapot/Bot/Object/Document.pm b/lib/Teapot/Bot/Object/Document.pm index 8c76161..3e4082c 100644 --- a/lib/Teapot/Bot/Object/Document.pm +++ b/lib/Teapot/Bot/Object/Document.pm @@ -5,7 +5,7 @@ use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PhotoSize; -$Teapot::Bot::Object::Document::VERSION = '0.021'; +$Teapot::Bot::Object::Document::VERSION = '0.022'; has 'file_id'; has 'thumb'; #PhotoSize @@ -34,7 +34,7 @@ Teapot::Bot::Object::Document - The base class for Telegram 'Document' objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Document' objects. diff --git a/lib/Teapot/Bot/Object/EncryptedCredentials.pm b/lib/Teapot/Bot/Object/EncryptedCredentials.pm index bed9470..4f90357 100644 --- a/lib/Teapot/Bot/Object/EncryptedCredentials.pm +++ b/lib/Teapot/Bot/Object/EncryptedCredentials.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::EncryptedCredentials; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::EncryptedCredentials::VERSION = '0.021'; +$Teapot::Bot::Object::EncryptedCredentials::VERSION = '0.022'; has 'data'; has 'hash'; @@ -27,7 +27,7 @@ Teapot::Bot::Object::EncryptedCredentials - The base class for Telegram 'Encrypt =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'EncryptedCredentials' type objects. diff --git a/lib/Teapot/Bot/Object/EncryptedPassportElement.pm b/lib/Teapot/Bot/Object/EncryptedPassportElement.pm index 437d693..0922a85 100644 --- a/lib/Teapot/Bot/Object/EncryptedPassportElement.pm +++ b/lib/Teapot/Bot/Object/EncryptedPassportElement.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::EncryptedPassportElement; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::EncryptedPassportElement::VERSION = '0.021'; +$Teapot::Bot::Object::EncryptedPassportElement::VERSION = '0.022'; # XXX Implement rest of this # https://core.telegram.org/bots/api#encryptedpassportelement @@ -33,7 +33,7 @@ Teapot::Bot::Object::EncryptedPassportElement - The base class for Telegram 'Enc =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'EncryptedPassportElement' type objects. diff --git a/lib/Teapot/Bot/Object/Game.pm b/lib/Teapot/Bot/Object/Game.pm index dd90926..fec213f 100644 --- a/lib/Teapot/Bot/Object/Game.pm +++ b/lib/Teapot/Bot/Object/Game.pm @@ -7,7 +7,7 @@ use Teapot::Bot::Object::PhotoSize; use Teapot::Bot::Object::Animation; use Teapot::Bot::Object::MessageEntity; -$Teapot::Bot::Object::Game::VERSION = '0.021'; +$Teapot::Bot::Object::Game::VERSION = '0.022'; has 'title'; has 'description'; @@ -41,7 +41,7 @@ Teapot::Bot::Object::Game - The base class for Telegram message 'Game' type =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'Game' type. diff --git a/lib/Teapot/Bot/Object/InlineKeyboardButton.pm b/lib/Teapot/Bot/Object/InlineKeyboardButton.pm index d46cc0e..58a26dc 100644 --- a/lib/Teapot/Bot/Object/InlineKeyboardButton.pm +++ b/lib/Teapot/Bot/Object/InlineKeyboardButton.pm @@ -5,7 +5,7 @@ use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::LoginUrl; use Teapot::Bot::Object::CallbackGame; -$Teapot::Bot::Object::InlineKeyboardButton::VERSION = '0.021'; +$Teapot::Bot::Object::InlineKeyboardButton::VERSION = '0.022'; has 'text'; has 'url'; @@ -39,7 +39,7 @@ Teapot::Bot::Object::InlineKeyboardButton - The base class for Telegram 'InlineK =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'InlineKeyboardButton' type objects. diff --git a/lib/Teapot/Bot/Object/InlineKeyboardMarkup.pm b/lib/Teapot/Bot/Object/InlineKeyboardMarkup.pm index 6f147aa..ff9906a 100644 --- a/lib/Teapot/Bot/Object/InlineKeyboardMarkup.pm +++ b/lib/Teapot/Bot/Object/InlineKeyboardMarkup.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::InlineKeyboardMarkup; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::InlineKeyboardButton; -$Teapot::Bot::Object::InlineKeyboardMarkup::VERSION = '0.021'; +$Teapot::Bot::Object::InlineKeyboardMarkup::VERSION = '0.022'; has 'inline_keyboard'; @@ -30,7 +30,7 @@ Teapot::Bot::Object::InlineKeyboardMarkup - The base class for Telegram 'InlineK =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'InlineKeyboardMarkup' type objects. diff --git a/lib/Teapot/Bot/Object/Invoice.pm b/lib/Teapot/Bot/Object/Invoice.pm index 632dc9f..152dcf4 100644 --- a/lib/Teapot/Bot/Object/Invoice.pm +++ b/lib/Teapot/Bot/Object/Invoice.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::Invoice; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::Invoice::VERSION = '0.021'; +$Teapot::Bot::Object::Invoice::VERSION = '0.022'; has 'title'; has 'description'; @@ -29,7 +29,7 @@ Teapot::Bot::Object::Invoice - The base class for Telegram 'Invoice' type object =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Invoice' type objects. diff --git a/lib/Teapot/Bot/Object/Location.pm b/lib/Teapot/Bot/Object/Location.pm index f488b20..7d93390 100644 --- a/lib/Teapot/Bot/Object/Location.pm +++ b/lib/Teapot/Bot/Object/Location.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::Location; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::Location::VERSION = '0.021'; +$Teapot::Bot::Object::Location::VERSION = '0.022'; has 'longitude'; has 'latitude'; @@ -26,7 +26,7 @@ Teapot::Bot::Object::Location - The base class for Telegram message 'Location' t =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'Location' type. diff --git a/lib/Teapot/Bot/Object/LoginUrl.pm b/lib/Teapot/Bot/Object/LoginUrl.pm index 83c27e8..328e5b4 100644 --- a/lib/Teapot/Bot/Object/LoginUrl.pm +++ b/lib/Teapot/Bot/Object/LoginUrl.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::LoginUrl; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::LoginUrl::VERSION = '0.021'; +$Teapot::Bot::Object::LoginUrl::VERSION = '0.022'; has 'url'; has 'forward_text'; @@ -28,7 +28,7 @@ Teapot::Bot::Object::LoginUrl - The base class for Telegram 'LoginUrl' type obje =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'LoginUrl' type objects. diff --git a/lib/Teapot/Bot/Object/Message.pm b/lib/Teapot/Bot/Object/Message.pm index a512f8f..5f2090e 100644 --- a/lib/Teapot/Bot/Object/Message.pm +++ b/lib/Teapot/Bot/Object/Message.pm @@ -30,7 +30,7 @@ use Teapot::Bot::Object::InlineKeyboardMarkup; use Data::Dumper; -$Teapot::Bot::Object::Message::VERSION = '0.021'; +$Teapot::Bot::Object::Message::VERSION = '0.022'; # basic message stuff has 'message_id'; @@ -156,7 +156,7 @@ Teapot::Bot::Object::Message - The base class for the Telegram type "Message" =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for the Telegram type "Message". diff --git a/lib/Teapot/Bot/Object/MessageEntity.pm b/lib/Teapot/Bot/Object/MessageEntity.pm index d95e874..b05c28a 100644 --- a/lib/Teapot/Bot/Object/MessageEntity.pm +++ b/lib/Teapot/Bot/Object/MessageEntity.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::MessageEntity; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::User; -$Teapot::Bot::Object::MessageEntity::VERSION = '0.021'; +$Teapot::Bot::Object::MessageEntity::VERSION = '0.022'; has 'type'; has 'offset'; @@ -34,7 +34,7 @@ Teapot::Bot::Object::MessageEntity - The base class for Telegram 'MessageEntity' =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'MessageEntity' type objects. diff --git a/lib/Teapot/Bot/Object/PassportData.pm b/lib/Teapot/Bot/Object/PassportData.pm index e6f7af5..e1b60a7 100644 --- a/lib/Teapot/Bot/Object/PassportData.pm +++ b/lib/Teapot/Bot/Object/PassportData.pm @@ -5,7 +5,7 @@ use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::EncryptedPassportElement; use Teapot::Bot::Object::EncryptedCredentials; -$Teapot::Bot::Object::PassportData::VERSION = '0.021'; +$Teapot::Bot::Object::PassportData::VERSION = '0.022'; has 'data'; # Array of EncryptedPassportElement has 'credentials'; # EncryptedCredentials @@ -35,7 +35,7 @@ Teapot::Bot::Object::PassportData - The base class for Telegram 'PassportData' t =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'PassportData' type objects. diff --git a/lib/Teapot/Bot/Object/PhotoSize.pm b/lib/Teapot/Bot/Object/PhotoSize.pm index 113028f..4ce99ed 100644 --- a/lib/Teapot/Bot/Object/PhotoSize.pm +++ b/lib/Teapot/Bot/Object/PhotoSize.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::PhotoSize; use Mojo::Base 'Teapot::Bot::Object::Base'; use Carp qw/croak/; -$Teapot::Bot::Object::PhotoSize::VERSION = '0.021'; +$Teapot::Bot::Object::PhotoSize::VERSION = '0.022'; has 'file_id'; has 'width'; @@ -29,7 +29,7 @@ Teapot::Bot::Object::PhotoSize - The base class for Telegram message 'PhotoSize' =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'PhotoSize' type. diff --git a/lib/Teapot/Bot/Object/Poll.pm b/lib/Teapot/Bot/Object/Poll.pm index 8bbcf0f..2b7390d 100644 --- a/lib/Teapot/Bot/Object/Poll.pm +++ b/lib/Teapot/Bot/Object/Poll.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::Poll; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PollOption; -$Teapot::Bot::Object::Poll::VERSION = '0.021'; +$Teapot::Bot::Object::Poll::VERSION = '0.022'; has 'id'; has 'question'; @@ -36,7 +36,7 @@ Teapot::Bot::Object::Poll - The base class for Telegram 'Poll' type objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Poll' type objects diff --git a/lib/Teapot/Bot/Object/PollOption.pm b/lib/Teapot/Bot/Object/PollOption.pm index a9dc457..651a88e 100644 --- a/lib/Teapot/Bot/Object/PollOption.pm +++ b/lib/Teapot/Bot/Object/PollOption.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::PollOption; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::PollOption::VERSION = '0.021'; +$Teapot::Bot::Object::PollOption::VERSION = '0.022'; has 'text'; has 'voter_count'; @@ -26,7 +26,7 @@ Teapot::Bot::Object::PollOption - The base class for Telegram 'PollOption' type =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'PollOption' type objects. diff --git a/lib/Teapot/Bot/Object/Sticker.pm b/lib/Teapot/Bot/Object/Sticker.pm index 064df45..1b13e57 100644 --- a/lib/Teapot/Bot/Object/Sticker.pm +++ b/lib/Teapot/Bot/Object/Sticker.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::Sticker; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PhotoSize; -$Teapot::Bot::Object::Sticker::VERSION = '0.021'; +$Teapot::Bot::Object::Sticker::VERSION = '0.022'; has 'file_id'; has 'width'; @@ -36,7 +36,7 @@ Teapot::Bot::Object::Sticker - The base class for Telegram message 'Sticker' typ =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'Sticker' type. diff --git a/lib/Teapot/Bot/Object/SuccessfulPayment.pm b/lib/Teapot/Bot/Object/SuccessfulPayment.pm index db52f71..6747de1 100644 --- a/lib/Teapot/Bot/Object/SuccessfulPayment.pm +++ b/lib/Teapot/Bot/Object/SuccessfulPayment.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::SuccessfulPayment; use Mojo::Base 'Teapot::Bot::Object::Base'; # use Teapot::Bot::Object::OrderInfo; -$Teapot::Bot::Object::SuccessfulPayment::VERSION = '0.021'; +$Teapot::Bot::Object::SuccessfulPayment::VERSION = '0.022'; has 'currency'; has 'total_amount'; @@ -36,7 +36,7 @@ Teapot::Bot::Object::SuccessfulPayment - The base class for Telegram 'Successful =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'SuccessfulPayment' type objects. diff --git a/lib/Teapot/Bot/Object/User.pm b/lib/Teapot/Bot/Object/User.pm index 8f8e831..f53721f 100644 --- a/lib/Teapot/Bot/Object/User.pm +++ b/lib/Teapot/Bot/Object/User.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::User; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::User::VERSION = '0.021'; +$Teapot::Bot::Object::User::VERSION = '0.022'; has 'id'; has 'is_bot'; @@ -37,7 +37,7 @@ Teapot::Bot::Object::User - The base class for Telegram message 'User' type =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram message 'User' type. diff --git a/lib/Teapot/Bot/Object/Venue.pm b/lib/Teapot/Bot/Object/Venue.pm index bdfa9c3..c14d160 100644 --- a/lib/Teapot/Bot/Object/Venue.pm +++ b/lib/Teapot/Bot/Object/Venue.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::Venue; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::Location; -$Teapot::Bot::Object::Venue::VERSION = '0.021'; +$Teapot::Bot::Object::Venue::VERSION = '0.022'; has 'location'; #Location has 'title'; @@ -34,7 +34,7 @@ Teapot::Bot::Object::Venue - The base class for Telegram 'LoginUrl' type objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'LoginUrl' type objects. diff --git a/lib/Teapot/Bot/Object/Video.pm b/lib/Teapot/Bot/Object/Video.pm index 1404508..a1237d7 100644 --- a/lib/Teapot/Bot/Object/Video.pm +++ b/lib/Teapot/Bot/Object/Video.pm @@ -4,7 +4,7 @@ package Teapot::Bot::Object::Video; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PhotoSize; -$Teapot::Bot::Object::Video::VERSION = '0.021'; +$Teapot::Bot::Object::Video::VERSION = '0.022'; has 'file_id'; has 'width'; @@ -35,7 +35,7 @@ Teapot::Bot::Object::Video - The base class for Telegram 'Video' object =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Video' object. diff --git a/lib/Teapot/Bot/Object/VideoNote.pm b/lib/Teapot/Bot/Object/VideoNote.pm index f5e7a27..0c62688 100644 --- a/lib/Teapot/Bot/Object/VideoNote.pm +++ b/lib/Teapot/Bot/Object/VideoNote.pm @@ -5,7 +5,7 @@ package Teapot::Bot::Object::VideoNote; use Mojo::Base 'Teapot::Bot::Object::Base'; use Teapot::Bot::Object::PhotoSize; -$Teapot::Bot::Object::VideoNote::VERSION = '0.021'; +$Teapot::Bot::Object::VideoNote::VERSION = '0.022'; has 'file_id'; has 'length'; @@ -35,7 +35,7 @@ Teapot::Bot::Object::VideoNote - The base class for Telegram 'VideoNote' type ob =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'VideoNote' type object. diff --git a/lib/Teapot/Bot/Object/Voice.pm b/lib/Teapot/Bot/Object/Voice.pm index 051c0b8..923d9f2 100644 --- a/lib/Teapot/Bot/Object/Voice.pm +++ b/lib/Teapot/Bot/Object/Voice.pm @@ -3,7 +3,7 @@ package Teapot::Bot::Object::Voice; use Mojo::Base 'Teapot::Bot::Object::Base'; -$Teapot::Bot::Object::Voice::VERSION = '0.021'; +$Teapot::Bot::Object::Voice::VERSION = '0.022'; has 'file_id'; has 'duration'; @@ -28,7 +28,7 @@ Teapot::Bot::Object::Voice - The base class for Telegram 'Voice' type objects =head1 VERSION -version 0.021 +version 0.022 =head1 DESCRIPTION The base class for Telegram 'Voice' type objects. diff --git a/lib/telegrambot.pm b/lib/telegrambot.pm index 94bf9e6..a7f1fd7 100644 --- a/lib/telegrambot.pm +++ b/lib/telegrambot.pm @@ -10,7 +10,6 @@ use Data::Dumper; use open qw(:std :utf8); use File::Path qw( mkpath ); use Hailo; -use Encode; use Mojo::Base 'Teapot::Bot::Brain'; use conf qw(loadConf);