Coder Social home page Coder Social logo

telegram-bot-lua's Issues

Suggestions

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.

Script stops responding to messages after running for a while

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.

Problem on .configure(token)

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)

Windows support?

Hi!
Do you have plans to add windows support for your awesome project?

How can I disable a bot privacy mode?

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?

OpenBSD compatible?

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

How to run lua telegram bot behind a proxy ?

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 ?

Tutorial on message types

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".

Error upon installation

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.

Let send bot a message spontaneously?

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!

Attempt to index field 'info' (a boolean value)

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?

Group Butler bot do not work for me.

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.

problem with tg and 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

How to go about creating dynamic inline keyboards?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.