chore(client)!: some MessageMedia fixes
breaking: `WebPage#type`: `web_page` -> `webpage` for consistency
This commit is contained in:
parent
e9d6cfc39d
commit
af34f1e5ca
3 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ export async function sendCopy(
|
||||||
throw new MtArgumentError("Service messages can't be copied")
|
throw new MtArgumentError("Service messages can't be copied")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg.media && msg.media.type !== 'web_page' && msg.media.type !== 'invoice') {
|
if (msg.media && msg.media.type !== 'webpage' && msg.media.type !== 'invoice') {
|
||||||
let caption: InputText | undefined = params.caption
|
let caption: InputText | undefined = params.caption
|
||||||
|
|
||||||
if (!caption) {
|
if (!caption) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { Thumbnail } from './thumbnail.js'
|
||||||
* A photo
|
* A photo
|
||||||
*/
|
*/
|
||||||
export class Photo extends FileLocation {
|
export class Photo extends FileLocation {
|
||||||
readonly type: 'photo'
|
readonly type = 'photo' as const
|
||||||
|
|
||||||
/** Biggest available photo width */
|
/** Biggest available photo width */
|
||||||
readonly width: number
|
readonly width: number
|
||||||
|
|
|
@ -17,7 +17,7 @@ import { Photo } from './photo.js'
|
||||||
* of my own observations and experiments.
|
* of my own observations and experiments.
|
||||||
*/
|
*/
|
||||||
export class WebPage {
|
export class WebPage {
|
||||||
readonly type = 'web_page' as const
|
readonly type = 'webpage' as const
|
||||||
|
|
||||||
constructor(readonly raw: tl.RawWebPage) {}
|
constructor(readonly raw: tl.RawWebPage) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue