wrxck / telegram-bot-lua Goto Github PK
View Code? Open in Web Editor NEWA simple yet extensive Lua library for the Telegram bot API.
License: GNU General Public License v3.0
A simple yet extensive Lua library for the Telegram bot API.
License: GNU General Public License v3.0
Hello.
Please apply the following :
1- A function in tools.lua to use with setChatPhoto method to upload photos using multipart/form-data.
2- Update git's Readme and put new functions in API methods.
Thanks.
Your API works great, but sometimes my script stops receiving messages after it runs for a while. If I restart the script (and therefore re-call api.run()
), the script receives all of the queued-up messages that it missed, all at once. I'll dig around and see if I can figure out why this happens.
this is what is printed in my terminal :
Not Found [404]
lua: /usr/share/lua/5.3/telegram-bot-lua/core.lua:24: attempt to index a boolean value (field 'info')
stack traceback:
/usr/share/lua/5.3/telegram-bot-lua/core.lua:24: in function 'telegram-bot-lua.core.configure'
ufbot.lua:3: in main chunk
[C]: in ?
by the way : ufbot is just the same as example.lua, i just added my bot token like
local api = require(telegram-bot-lua.core).configure(bot298319:AKjASdoAMnJkWyThjSfDg)
Hi!
Do you have plans to add windows support for your awesome project?
I wish to have my bot talking with the other users like if it was one of them, without direct interaction. I saw some text explaining I had to disable privacy mode. Is it possible with this library?
something like api.create_command
? aiogram has this thing
checkout official note
Hi,
When trying to use it in my OpenBSD env, it failed because the rockspec does not support unix,BSD,OpenBSD platform. Is there any reason for it?
thank you
Michal
Hello, I am from China and I need to use the bot behind a proxy. I set the system proxy but it seems useless to the example bot.
I have read issue #2 and it is not my problem. When I write telegram bot in python, my solution is like:
updater = Updater(token=TOKEN, request_kwargs={'proxy_url': 'socks5://127.0.0.1:1080/'})
But I didn't find ways in this.
The output is like:
lua: /usr/local/share/lua/5.4/telegram-bot-lua/core.lua:34: attempt to index a boolean value (field 'info')
stack traceback:
/usr/local/share/lua/5.4/telegram-bot-lua/core.lua:34: in function 'telegram-bot-lua.core.configure'
main.lua:3: in main chunk
[C]: in ?
Hello; is there a tutorial for the package? Like explaining when each type of message is used or with more examples? I would like to catch up with mattata source code after more "playing around".
Upon trying to install this all I get is this error message:
Error: This rockspec for telegram-bot-lua does not support mingw, mingw32, win32, windows platforms.
Hi!
Is it currently possible to, for example, let the bot send a message spontaneously?
Or does/can the bot only react on user actions (=> messages)?
I would like to achieve both. That means, the bot should react on Messages, but also should, for example, send Messages "by himself". The latter could maybe caused by a cyclic check, and if the check has a specific result, a warning is being sent...
Thanks!
When I try to initialize an instance I get this:
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> local api = require('telegram-bot-lua.core').configure('bot*bottoken*')
Not Found [404]
Payload: [""]
/usr/local/share/lua/5.1/telegram-bot-lua/core.lua:32: attempt to index field 'info' (a boolean value)
stack traceback:
/usr/local/share/lua/5.1/telegram-bot-lua/core.lua:32: in function 'configure'
stdin:1: in main chunk
[C]: ?
Why the 404 error?
I'm tryng to create a new group in Telegram to share information with my student. When use Group Butler bot to manage the group, it do not respond any command.
How should I unit-test a bot made with telegram-bot-lua?
hi i use tdbot.lua and tg file to write a source . i want to use your lib for my soruce and send keyboard panel with lib and when i use api.run block tg and block receive message with tg and server cant read messages and dont answer to them but when i dont use api.run then your lib dont work and tg is ready and answering to all send messages.
pic1 dont read messages
pic2 read message when api.run is off
Hi there. I was hoping someone could help me out. I have a class that contains items users have listed. I was hoping when the user says something like '/list listname' that I could display the items in an inline keyboard and allow them to check off the items. I am having trouble figuring out how I would go about creating an inline keyboard without a set number of buttons.
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.