help.editUserInfo
Internal use
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.help.editUserInfo({
userId: new Api.InputUser({...}),
message: 'random string here',
entities: [new Api.MessageEntity({...})],
}));
console.log(result); // prints the result
})();
TL schema
help.userInfoEmpty#f3ae2eed = help.UserInfo;
help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
---functions---
help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo;
Parameters
Name
Type
Description
Result
Possible errors
Code
Type
Description
Can bots use this methd ?
yes
Related pages
How to create styled text with message entities
Last updated
Was this helpful?