botman / internals

Issues board used for BotMan internals discussions.
0 stars 0 forks source link

Add getLanguageCode to src/Users/User.php shared methods #1

Open johntiror opened 7 years ago

johntiror commented 7 years ago

Add to User.php:

class User implements UserInterface
{
    /** 
    * @return string
    */
    public function getLanguageCode() {
    }
}

The function MUST return the IETF language tag of the user's language if available, null otherwise.

Note:

polyskalov commented 4 years ago

Viber supports user language too.

Quite a useful feature. @botman, there are some updates on this task?