MParvin / TR-CMD

Telegram Remote Command Runner Bot - Safe & Easy run command on remote linux server (Without SSH)
51 stars 9 forks source link

You cannot use this bot, because you are not Admin!!!! #1

Closed RaminMT closed 6 years ago

RaminMT commented 6 years ago

Hi I was trying to use this nice tool but I got some problem like lack of install guide or such a thing! 😆 After I successfully deployed this I'v got an error on bot saying I'm not admin. Though I made test & hell yeah! I guessed right chat_id coming from telegram is type of 'int' but the one in config file is type of 'str'. I fixed that on my own, but as an appreciate to your job I came to inform you about.

Oh one thing more, I guess you are an Ubuntu user but I'm CentOS one, so I can write installation guide if you like 😄

Thanks Ramin

MParvin commented 6 years ago

Hi Ramin Thank you for your good comment. I had forgotten to write How to use in Readme file.😊 As far as I know In the telegram API does not matter type of chat_id (string or integer). I would appreciate it if you can help me to write a complete installation guide for CentOS users. I wrote a how to use section to Readme file. Thanks again.

RaminMT commented 6 years ago

Ok, I'll do that soon :) And a note on chat_id, the problem occurs in IsAdmin function tsmb.py, there is a condition which checks current Telegram user chat_id with the one on config file but as of they have different type throws error.

Thank you

MParvin commented 6 years ago

Please forgive me for not understanding what you meant. In last commit I resolve the chat_id problem. Thanks a million :)