Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run lua telegram bot behind a proxy ? #21

Open
Murphy-OrangeMud opened this issue Mar 22, 2022 · 0 comments
Open

How to run lua telegram bot behind a proxy ? #21

Murphy-OrangeMud opened this issue Mar 22, 2022 · 0 comments

Comments

@Murphy-OrangeMud
Copy link

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 ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant