Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

No admin access #11

Closed
DEAM0 opened this issue Aug 22, 2023 · 12 comments
Closed

No admin access #11

DEAM0 opened this issue Aug 22, 2023 · 12 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@DEAM0
Copy link

DEAM0 commented Aug 22, 2023

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

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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.

@PheeZz PheeZz added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 22, 2023
@DEAM0
Copy link
Author

DEAM0 commented Aug 22, 2023

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

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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

@DEAM0
Copy link
Author

DEAM0 commented Aug 22, 2023

well thank you

@PheeZz PheeZz changed the title Я плохо умею быть администратором No admin access Aug 22, 2023
@PheeZz PheeZz pinned this issue Aug 22, 2023
@PheeZz PheeZz closed this as completed Aug 22, 2023
@DEAM0
Copy link
Author

DEAM0 commented Aug 22, 2023

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

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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

@DEAM0
Copy link
Author

DEAM0 commented Aug 22, 2023

no

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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
Copy link
Author

DEAM0 commented Aug 22, 2023

And where change message?

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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

@DEAM0
Copy link
Author

DEAM0 commented Aug 22, 2023

bro payments with stripe not work...

@PheeZz
Copy link
Owner

PheeZz commented Aug 22, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants