Closed webwarrior-ws closed 1 month ago
when posting /buy or /sell commands in the channel
Hi, to create an order you must do it either directly within the bot, or from the group that you configured in HELP_GROUP in the .env If you are trying to create it from the group chat, check that the bot is an admin with read and write permissions, and that you have correctly written its @username in your .env file
ADMIN_CHANNEL is for receiving notifications as admin, you cannot create an order from there
I posted commands to bot chat, or whatever it's called. And for example /listorders
works and I get response from bot and no errors.
I posted commands to bot chat, or whatever it's called. And for example
/listorders
works and I get response from bot and no errors.
Check again that your bot is admin and has the permissions in the channel you put in CHANNEL
, also verify that you have the @username correct (it is not the channel id, but the username) and try again to create an order from within your bot, or from the group that you put in HELP_GROUP
I finally solved it. Channel has to be public and part after t.me/
in link is what goes into CHANNEL
property.
I finally solved it. Channel has to be public and part after t.me/ in link is what goes into CHANNEL property.
If this info was not in the documentation, please reopen this issue and create PR to add it.
I've been following installation instructions, and I'm stuck at "Using the bot" step. Specifically, when posting
/buy
or/sell
commands in the channel, bot doesn't respond and I have the following error in console:I tried to use Telegram HTTP API to send message from bot using the same
bot_token
as inBOT_TOKEN
property in.env
andchat_id
asCHANNEL
property, and it succeeded.https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={chat_id}&text=hello
Bot is also admin in that channel, andADMIN_CHANNEL
is set to the right value.