Questions tagged [lua-telegram-bot]

8 questions
7
votes
3 answers

How much length can be of a Telegram user_id?

I am making a database in which my algorithm only accepts queries from users with telegram id length of 9. user_id: 123456789; length = user_id.length; display(length); OUTPUT: 9 Are there telegram user ids of length lesser than 9?Can anybody…
2
votes
1 answer

What should i do to get "telegram private group ids" new way

I want to create new bot that print users first name in telegram groups. So it could be easily done in public groups but in private groups I need its id so I have to add bot to private groups and then what should I do? I want to do it in Python or…
1
vote
1 answer

Cannot find the Telegram Account type

I'm maintaining a group on Telegram. There is one user who keeps joining and leaving the group, I'm not even sure this is an account or what it is. I can't even send any personal messages. I'm using below-mentioned code to see the new chat…
1
vote
2 answers

Send multiple response messages in telegram-cli (Lua script)

I want to send the automatic reply messages in Telegram-CLI using modified lua script as below: function ok_cb(extra, success, result) end function wait(seconds) local start = os.time() repeat until os.time() > start + seconds end function…
wakhaiha
  • 55
  • 1
  • 6
1
vote
3 answers

Can I use chat_id to send message to clients in Telegram bot after a period of time?

I want to say to clients to start my chat bot and send me username and password, then I store chat_id of them, and use it whenever I want to send a message to one of them. Is it possible? or chat_id will be expire?
0
votes
1 answer

call function into function in lua

i have code in my lua file and i edit that to look like this function getUserinfo(user_id) function call_back_user_info(status , result) t = {["first_name"]= result.first_name_, ['have_access']= result.have_access_,…
0
votes
0 answers

Telegram bot channel updates

How to recieve messages by bot inside the channel? the method https://api.telegram.org/botTOKEN/getUpdates Shows only a private bot chat updates.
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
-1
votes
2 answers

ways to get chat id of a phone number in telegram bot

I want to know what are the ways to get the chat id of phone numbers in telegram bot programming. I have a small project that I need to get Chatid of a group of phone numbers in telegram very fast .