tweb/src/components/wrappers/peerTitle.ts
Eduard Kuzmenko 25d222ded4 eslint init
2022-08-04 08:49:54 +02:00

14 lines
387 B
TypeScript

/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*/
import PeerTitle, {PeerTitleOptions} from '../peerTitle';
export default async function wrapPeerTitle(options: PeerTitleOptions) {
const peerTitle = new PeerTitle();
await peerTitle.update(options);
return peerTitle.element;
}