package Telegram::JsonAPI;
use 5.018;
use strict;
use warnings;
use Carp;
require Exporter;
use AutoLoader;
our @ISA = qw(Exporter);
our %EXPORT_TAGS = ( 'all' => [ qw(
td_create_client_id
SLoader;
XSLoader::load('Telegram::JsonAPI', $VERSION);
1;
__END__
=head1 NAME
Telegram::JsonAPI - Telegram TDLib's JSON API
=head1 SYNOPSIS
use Telegram::JsonAPI qw(:all);
td_start_log();
tra": 1.01234}');
# start loggin progress
while(1) {
my $msg = decode_json(td_receive(.1));
# Wait for a JSON message for at most 0.1 second.
# There will be a `@client_id` field, whi