Closed slavi010 closed 4 years ago
Ho, and the same time, add your python version.
First, you need to create Telegram Bot via BotFather. You will receive token for your own Telegram bot like this 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw
. Copy and paste in config.ini
file.
For more information you can read this introduction by Telegram to create new bot.
I use Python 3. I will try to add little instruction in README.md
Nice, thanks !
I guess you need an Telegram account ?
Sure, you need Telegram account. How you can interact with Telegram bot without having any Telegram account.
Magic ?
There is no magic in here. You need Telegram accout :smile_cat:. Are you never use Telegram before?
No, I generally use Signal. So its going to be the first time i use it ^^
If you never use Telegram. Maybe you can try another project, like making bot for Discord, Slack, Reddit, WhatsApp (fyi, I never tried making all of this).
The codes that I write in plugins
folder can be use without using main.py
, because I write those stuff as Python module.
I never use Signal but probably you can try to make Signal bot (if you don't want to make Telegram account).
I tested the programme but i got this issue : caused error "'NoneType' object has no attribute 'reply_text'"
When i test /slang test
. Same error for mean and synonym
Thats not happen to me :confused:.
I'm not implement python try...except
to handle error for this time, because the program is not completed yet.
Ho, it seems to work now. I don't know why but occasionally there is an error that occurs :/
I use all free public API to get any list of definition, synonym, slang, and quotes. Maybe there is limit of connection request to those API url, and will give None
response (and make some error).
Try to relaunch your bot.
Add Quick Start Guide to README.
I need a token
telegram.error.InvalidToken: Invalid token
. But for what is it ? Where i can get one ?You can add a "instructions" section for your readme.