PheeZz / wireguard-bot

telegram bot for manage Wireguard server
MIT License
83 stars 20 forks source link

No admin access #11

Closed DEAM0 closed 1 year ago

DEAM0 commented 1 year ago

У нас проблема, если я дам правильный ID, я не смогу зайти в администрацию.

PheeZz commented 1 year ago

Hi, first of all check if you have entered the correct telegram id. You can find your ID at this bot Next, check how the ADMINS_IDS variable is specified in the data/.env file. Let's say your ID is 123456. The variable should look like ADMINS_IDS = '123456,'. There is no admin panel as such, the commands available to the administrator can be found here.

DEAM0 commented 1 year ago

Да, уже работает, можно ли добавить больше серверов? Или только один?

PheeZz commented 1 year ago

There is no way to create a network of servers right now, maybe this feature will come later.

DEAM0 commented 1 year ago

well thank you

DEAM0 commented 1 year ago

Is there a way to translate this script? I translated the keyboard and the keyboard doesn't work and neither do the commands.

PheeZz commented 1 year ago

Did you change handlers registration rules in handlers/__init__.py ?

DEAM0 commented 1 year ago

no

PheeZz commented 1 year ago

We need to change the text in handlers/__init__.py so that it matches what is in the keyboard. In fact, the keyboard that is not bound to a message (inline) is the buttons for sending messages. Handlers are set to specific messages, by changing the buttons on the keyboard - you have not changed the conditions for the script to trigger.

DEAM0 commented 1 year ago

And where change message?

PheeZz commented 1 year ago

reply keyboards (buttons with text under textarea): keyboards/reply.py inline keyboars: keyboards/inline.py

DEAM0 commented 1 year ago

bro payments with stripe not work...

PheeZz commented 1 year ago

Of course, by default only card-to-card bank transfer and manual subscription issuance are available. If you need invoice payments - you can add logic for processing them in handlers/user.py Documentation of aiogram on invoice payments