Comments (17)
I'll update the README with clear instructions, I'm sorry!
from genshin-impact-stats-telegram-bot.
Wait, you should replace the text "telegram_id" with your actual uid, e.g.
"accounts": {
"123132132": {
123132132 should be replaced with the uid returned from the bot
from genshin-impact-stats-telegram-bot.
Did you create a .config.json file with your information? Have you opened the ports on your vps? Seems like telegram server can't contact with your telegram bot
from genshin-impact-stats-telegram-bot.
i did. i have opened ports on vps panel, but it's not working anyways. ufw is disabled
from genshin-impact-stats-telegram-bot.
Try changing from webhooks to polling, that way we can check if you're getting updates from telegram server; comment from line 86 to line 97 in paimon.py and uncomment line 98
from genshin-impact-stats-telegram-bot.
it seems like it doesn't get any updates
from genshin-impact-stats-telegram-bot.
Change the debug level in
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO
)
from INFO to DEBUG and paste the trace (or check that you're receiving OK when the bot is doing HTTP requests)
Don't forget to remove sensitive information from the trace, like bot tokens or genshin tokens.
from genshin-impact-stats-telegram-bot.
it gets my commands like it should but i have no reply
from genshin-impact-stats-telegram-bot.
Did you check your telegram uid? If the server connection is working fine, it implies that you're not being marked as "allowed" in the bot. Check
if your uid is passing the check of allowed clients uid = ut.uid(update)
print(allowed(uid))
from genshin-impact-stats-telegram-bot.
where do i set uid? in .config.json? if so, i've set my id to match telegram id, the same it reports in logs
from genshin-impact-stats-telegram-bot.
Yes, .config.json. After adding the line above (print allowed), are your receiving True? Or just remove the if allowed
line, and keep only the ut.send
(removing 1 block of identation)
from genshin-impact-stats-telegram-bot.
i can't add line, bot stops working. trying to do it now...
from genshin-impact-stats-telegram-bot.
It should be like this
async def bot_help(update: Update, context: ut.Context) -> None:
uid = ut.uid(update)
await ut.send(update, HELP)
You should receive at least a response from /start and /help commands
from genshin-impact-stats-telegram-bot.
yup, it's replying now
from genshin-impact-stats-telegram-bot.
Then, your telegram uid isn't correct.
Use this to set the telegram uid in config.json:
async def bot_help(update: Update, context: ut.Context) -> None:
uid = ut.uid(update)
await ut.send(update, f"Your telegram uid is: {uid}")
The bot will send you a message with your uid, use that in config.json
"accounts": {
"uid here like, i.e., 123132132": {
from genshin-impact-stats-telegram-bot.
uid is exactly the same as i entered it before
do i need to set it like
"accounts": {
"uid here like, i.e., 123132132": {
?
from genshin-impact-stats-telegram-bot.
fine, it works now. instructions unclear, need to be something like "REPLACE_THIS_WITH_YOUR_TELEGRAM_ID" for people like me :)
thanks a lot!
from genshin-impact-stats-telegram-bot.
Related Issues (2)
- Features request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genshin-impact-stats-telegram-bot.