benjif / telegram-bot Goto Github PK
View Code? Open in Web Editor NEWReactive telegram bot library for Raku/Perl6
License: Creative Commons Zero v1.0 Universal
Reactive telegram bot library for Raku/Perl6
License: Creative Commons Zero v1.0 Universal
Made possible to change base URL.
This is the message:
Died with the exception:
Exceeded timeout for connection when attempting to access api.telegram.org
in block at /home/jmerelo/.rakubrew/versions/moar-2022.07/install/share/perl6/site/sources/5DF05A37EADB5F570EBCC5CA4E892D3D8C93E425 (Cro::HTTP::Client) line 847
If they have been uri-encoded on the other end, for instance. Or URI encoded only in part.
I can do a PR for this is needed; would you please add "hacktoberfest" to the topics of the repo so that it counts :-)?
sendMessage will fail with any complex text. $text should be url-encoded.
$text.subst(/<-alnum>/, *.ord.fmt("%%%02X"), :g);
C:\Users\who\Desktop\perl6code>perl6 tg_bot.p6
Unhandled exception in code scheduled on thread 4
Tried to get the result of a broken Promise
in block at D:\rakudo-moar-2021.02.1-01-win-x86_64-msvc\share\perl6\site\sources\DDDD3607B617AC6B7DCA0D086AD3F4247AC394E9 (Cro::TLS) line 108
Original exception:
An operation first awaited:
in block at D:\rakudo-moar-2021.02.1-01-win-x86_64-msvc\share\perl6\site\sources\584A708596C72A1A3A2D0C14E98DC9315145E2FE (IO::Socket::Async::SSL) line 364
Died with the exception:
Server certificate verification failed: self signed certificate in certificate chain
in block at D:\rakudo-moar-2021.02.1-01-win-x86_64-msvc\share\perl6\site\sources\584A708596C72A1A3A2D0C14E98DC9315145E2FE (IO::Socket::Async::SSL) line 364
C:\Users\who\Desktop\perl6code>
The current version leaves out some characters such as ร and things like โ
This is probably a good, or better, alternative than #8, although that could possible be needed after all.
Here it goes
Unhandled exception in code scheduled on thread 4
No such method 'floor' for invocant of type 'Any'
in method new at /home/jmerelo/.rakubrew/versions/moar-2021.02/install/share/perl6/site/sources/C0D1CE7BB808CE6F8C2FE02FF50E3FE073C3C6DD (Telegram::Object::Message) line 16
in block at /home/jmerelo/.rakubrew/versions/moar-2021.02/install/share/perl6/site/sources/76083AEB13DFA689AF7DC60B6BB6A52A07C27DA7 (Telegram) line 59
in method update at /home/jmerelo/.rakubrew/versions/moar-2021.02/install/share/perl6/site/sources/76083AEB13DFA689AF7DC60B6BB6A52A07C27DA7 (Telegram) line 36
in block at /home/jmerelo/.rakubrew/versions/moar-2021.02/install/share/perl6/site/sources/76083AEB13DFA689AF7DC60B6BB6A52A07C27DA7 (Telegram) line 69
I really have no idea how it arrived to this... There must be something in the original message that made it crash.
===> Testing: Digest:ver<0.18.0>
===> Testing [FAIL]: Digest:ver<0.18.0>
Aborting due to test failure: Digest:ver<0.18.0> (use --force-test to override)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.