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

Added option to save username instead of first name #47

Merged
merged 7 commits into from
Apr 2, 2018

Conversation

BuZZy1337
Copy link
Member

Useful when you have multiple users with the same first name authenticated to the bot.
Telegram Username has to be set in the telegram app and is unique.
If the new option is enabled in the adapter settings and the user did not choose an username in the app, then the adapter will continue to use the first name of the user and send an adapter.log.warn that the user did not set an username in the app.

Already tested on my system. 😄

1. Hide the entire polling interval row if "Servermode" is selected - not only the input field.
2. Added option to choose if the adapter should save the "public username" or the first name of authenticated users.
Added option to choose if the adapter should save the "public username" or the first name of authenticated users.
(Save username instead of first name)
@ramizh
Copy link

ramizh commented Apr 1, 2018

Thank you again for the effort! It works for me as well however I have to do another change in the settings page in order to "save and close" clicking the check button for that option alone wont allow me to save.
But if you just change the polling time then you can save and it works perfectly!

Edit: After doing that once now checking/unchecking the box for the option allows me to save the settings.

Copy link

@ramizh ramizh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly!

@BuZZy1337
Copy link
Member Author

That is because if you update manual via github URL the new option is not saved / existing "behind the scenes" yet when you open the configuration dialog.

@BuZZy1337
Copy link
Member Author

@GermanBluefox GermanBluefox merged commit b152ee8 into iobroker-community-adapters:master Apr 2, 2018
BuZZy1337 added a commit to BuZZy1337/ioBroker.telegram that referenced this pull request Apr 9, 2018
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

Successfully merging this pull request may close these issues.

3 participants