Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining v0019
by
papampi
on 28/09/2017, 22:00:01 UTC
How to setup telegram for nvoc0019

First of all install Telegram, you can have it on almost all operating systems: Windows, Mac, Linux, Android, iOS, ...
Open your telegram and send /newbot to @BotFather
To send message to @botfather, click the search (magnifying glass) and search for @botfather, when found click start and send message /newbot
It will ask for name, send your desired bot name EX.  Mining Rigs Info
Then it ask for a username for your bot , send your desired unique username EX. papampi_mining_nvoc0019
it will give you an HTTP API token EX.     HTTP API: 408504581:AAHen-E4peZrlVhJx-GlnADyiVDgGiR4O8g
Put it in your 1bash  like this :
Code:
TELEGRAM_APIKEY="408504581:AAHen-E4peZrlVhJx-GlnADyiVDgGiR4O8g"
Now send /getid to @myidbot same search process for @botfather
Click start, then send /getid
It will give you a 8 digit number put it in 1bash :
Code:
TELEGRAM_CHATID="97994065"
Thats it.
You will get some info every 30 min.
You can edit your telegram file and get more info
I will send my edited telegram for more info later today.


Hi papampi,
I've small problem with Telegram. I followed your instructions, I got API key, chat ID. Modified ./telegram file too. I'm using nvOS19-1.2

Now, if I test in bash, I got this message:
Code:
m1@rig-bafomet:~$ ./telegram
-bash: ./telegram: /bin/bash: bad interpreter: Text file busy
so, I tried execute directly with Bash, I got error message from Telegram API:
Code:
{"ok":false,"error_code":400,"description":"Bad Request: chat not found"}

Thanks for advice,
Jiri

try to test your api and chat id key :

Code:
/usr/bin/curl -m 5 -s -X POST --output /dev/null https://api.telegram.org/botYour_Api_Key/sendMessage -d "text=test message" -d chat_id=Your_Chat_ID

botYour_Api_Key = bot+your api key - no spaces  
Chat id and api key I wrote are example ....
you should get yours
run :
Code:
bash telegram

Thanks for prompt answer... :-)

Yes, I have registered bot via @BotFather and chat via @myidbot (followed your instruction). Here is my command:
Code:
/usr/bin/curl -m 5 -s -X POST https://api.telegram.org/bot470333125:AAHEk4zDliAgs85V_wqzX5jZ7c4H_9Zzx1s/sendMessage -d "text=test message" -d chat_id=420791205

Still same error
Code:
{"ok":false,"error_code":400,"description":"Bad Request: chat not found"}
but I don't know why.

No idea why,
repeat the process with @botfather and @myidbot, I think you are making a mistake some where