40ants / cl-telegram-bot Goto Github PK
View Code? Open in Web Editor NEWTelegram Bot API for Common Lisp
Home Page: https://40ants.com/cl-telegram-bot/
License: MIT License
Telegram Bot API for Common Lisp
Home Page: https://40ants.com/cl-telegram-bot/
License: MIT License
Hello,
Currently make-chat
ensures we create a private chat:
Only private chats are supported for now.
So we can't use the bot on a public group or on a private channel. As far as my tests went, we can only interact directly with it as 1to1 (which is cool).
Do you know what's required to bypass this limitation? (I didn't check the API docs yet)
thanks
I have a method that listens to on-message
and I want to get the *current-message*
ID so that I can pass it to reply
as reply-message-id
, but *current-message*
is not an exported symbol. Is that something we can export? Or maybe pass an instance of the message
class to on-message
? Or any other suggestions?
I made a request on how to use send-message on the 40-ants gitter-chat, and a few steps were mentioned that would allow send-message to work correctly.
The steps that are mentioned are:
Make sure send-message is exported from the cl-telegram-bot/message package instead of cl-telegram-bot/bot (I see some other functions also need such refactoring.
Remove export of the make-chat function because now it waits some internal plist with response from telegram server.
Add another function make-private-chat which can be used to recreate chat object from remembered (in a database) chat_id, nickname and other params.
I plan to address each of these in this issue. I hope to not make more work for you.
Thank you for this project.
I tried to create a basic bot, but keep getting this error:
debugger invoked on a TYPE-ERROR in thread
#<THREAD "telegram-bot" RUNNING {10048A2DA3}>:
The value
T
is not of type
STREAM
This seems to be caused by get-updates
calling make-request
with :streamp t
. When I redefine get-updates
to call make-request
with :streamp nil
, the bot starts working, but I'm not sure that this is the right way to go about the problem
What is the state of the project?
In case there are at least stubs of everything I will consider to implement some features too and make a pull request.
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.