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

Need help to start and config the bot #2

Open
shazhir opened this issue Nov 17, 2021 · 9 comments
Open

Need help to start and config the bot #2

shazhir opened this issue Nov 17, 2021 · 9 comments

Comments

@shazhir
Copy link

shazhir commented Nov 17, 2021

Hello i still don't get it....
i put my token into var token....
also my id to admin []
now what to do next? I got many errors like
"
2021-11-17T22:14:58.210694+00:00 app[worker.1]: No configuration file
2021-11-17T22:14:58.211547+00:00 app[worker.1]: Syntax: node bot.js menu.file data.folder [mode [username|telegram_id|all]]
2021-11-17T22:14:58.211618+00:00 app[worker.1]: menu.file - file with menu catalogs in format:
2021-11-17T22:14:58.211651+00:00 app[worker.1]: parrent:::catalog:::menubutton[:::action]
2021-11-17T22:14:58.211693+00:00 app[worker.1]: You can set DELIMETER in init.js
2021-11-17T22:14:58.211741+00:00 app[worker.1]: data.folder - path to folder with data for files from menu.file
2021-11-17T22:14:58.211793+00:00 app[worker.1]: mode - bot mode: "edit" for update menu
2021-11-17T22:14:58.211840+00:00 app[worker.1]: username|telegram_id - username or telegram_id users separated by commas which can edit menu
2021-11-17T22:14:58.211879+00:00 app[worker.1]: if mode=edit without this parameter, all users can edit menu
2021-11-17T22:14:58.211904+00:00 app[worker.1]: You can use "all" to all users can edit menu
"
please help and explain

@zZoMROT
Copy link
Owner

zZoMROT commented Nov 18, 2021

You have to start bot with commnad node bot.js menu botdata instead of node bot.js
The menu is file with struct of menu which stored for cases when you stoped/restarted bot
The botdata is folder where bot stored images/audio/video/... which it use in menu actions

@shazhir
Copy link
Author

shazhir commented Nov 18, 2021

You have to start bot with commnad node bot.js menu botdata instead of node bot.js The menu is file with struct of menu which stored for cases when you stoped/restarted bot The botdata is folder where bot stored images/audio/video/... which it use in menu actions

Thanks it worked i made botdata folder and it worked!
but one thing please the bot only create buttons in 1 column i want make them into 2 column and rows like 2 columns and 3 rows
Uploading IMG_20211118_181138_947.jpg…
https://t.me/HelpImage/2

@shazhir
Copy link
Author

shazhir commented Nov 18, 2021

Also i have one question... everytime i deploy the bot the buttons i made, for revoke and deleted and the buttons from menu file went to their place and replace with them, is there anything like backup file of buttons?

1 similar comment
@shazhir
Copy link
Author

shazhir commented Nov 18, 2021

Also i have one question... everytime i deploy the bot the buttons i made, for revoke and deleted and the buttons from menu file went to their place and replace with them, is there anything like backup file of buttons?

@shazhir
Copy link
Author

shazhir commented Nov 24, 2021

You have to start bot with commnad node bot.js menu botdata instead of node bot.js The menu is file with struct of menu which stored for cases when you stoped/restarted bot The botdata is folder where bot stored images/audio/video/... which it use in menu actions

Hello?

@zZoMROT
Copy link
Owner

zZoMROT commented Nov 24, 2021

There is no way to do several columns in this bot. I just don't understand how user can comfortable edit/modificate it.
You can use file menu like backup of menu. Also don't forget to get folder botdata to backup.

@sarangsahajan
Copy link

Is there any way to costomize the button orders like this 👇
IMG_20211125_003922

@zZoMROT
Copy link
Owner

zZoMROT commented Nov 24, 2021

Now there is no way. You can patch source code and open PR.

@shazhir
Copy link
Author

shazhir commented Nov 25, 2021

Now there is no way. You can patch source code and open PR.

I don't get it
what you mean patcch source and open PR
we really need columns for the bot... idk how to edit it cuz i don't really understand it
thanks

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

3 participants