GSMArena scraper + minor code changes

This commit is contained in:
lucmsilva651 2024-09-06 21:56:19 -03:00
parent 4be9aa4aca
commit 6a61d86b6e
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
6 changed files with 471 additions and 3 deletions

View file

@ -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)