GSMArena scraper + minor code changes
This commit is contained in:
parent
4be9aa4aca
commit
6a61d86b6e
6 changed files with 471 additions and 3 deletions
|
@ -6,7 +6,7 @@ async function getUserInfo(ctx) {
|
|||
const Strings = getStrings(ctx.from.language_code);
|
||||
|
||||
userInfo = Strings.userInfo
|
||||
.replace('{userName}', ctx.from.first_name || Strings.unKnown)
|
||||
.replace('{userName}', `${ctx.from.first_name} ${ctx.from.last_name}` || Strings.unKnown)
|
||||
.replace('{userId}', ctx.from.id || Strings.unKnown)
|
||||
.replace('{userHandle}', ctx.from.username ? `@${ctx.from.username}` : Strings.varNone)
|
||||
.replace('{userPremium}', ctx.from.is_premium ? Strings.varYes : Strings.varNo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue