public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); if ((flags & 4) != 0) reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; }
public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); phone_number = StringUtil.Deserialize(br); first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); if ((flags & 4) != 0) reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.geo = StreamingUtils.readTLObject(stream, context); this.title = StreamingUtils.readTLString(stream); this.address = StreamingUtils.readTLString(stream); this.provider = StreamingUtils.readTLString(stream); this.venueId = StreamingUtils.readTLString(stream); if ((this.flags & 4) != 0) { this.replyMarkup = StreamingUtils.readTLObject(stream, context); } }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); if ((Flags & 4) != 0) { ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { ReplyMarkup = null; } }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.message = StreamingUtils.readTLString(stream); if ((this.flags & 2) != 0) { this.entites = StreamingUtils.readTLVector(stream, context); } if ((this.flags & 4) != 0) { this.replyMarkup = StreamingUtils.readTLObject(stream, context); } }
public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); no_webpage = (flags & 1) != 0; message = StringUtil.Deserialize(br); if ((flags & 2) != 0) entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br); else entities = null; if ((flags & 4) != 0) reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); PhoneNumber = StringUtil.Deserialize(br); FirstName = StringUtil.Deserialize(br); LastName = StringUtil.Deserialize(br); if ((Flags & 4) != 0) { ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { ReplyMarkup = null; } }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.peer = StreamingUtils.readTLObject(stream, context); if ((this.flags & 1) != 0) { this.replyToMsgId = StreamingUtils.readInt(stream); } this.media = StreamingUtils.readTLObject(stream, context); this.randomId = StreamingUtils.readLong(stream); if ((this.flags & 4) != 0) { this.replyMarkup = StreamingUtils.readTLObject(stream, context); } }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); GeoPoint = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); Title = StringUtil.Deserialize(br); Address = StringUtil.Deserialize(br); Provider = StringUtil.Deserialize(br); VenueId = StringUtil.Deserialize(br); if ((Flags & 4) != 0) { ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { ReplyMarkup = null; } }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.id = StreamingUtils.readInt(stream); if ((this.flags & 0x100) != 0) { this.fromId = StreamingUtils.readInt(stream); } this.toId = StreamingUtils.readTLObject(stream, context); if ((this.flags & 4) != 0) { this.fwdFrom = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x800) != 0) { this.viaBotId = StreamingUtils.readInt(stream); } if ((this.flags & 8) != 0) { this.replyToMsgId = StreamingUtils.readInt(stream); } this.date = StreamingUtils.readInt(stream); this.message = StreamingUtils.readTLString(stream); if ((this.flags & 0x200) != 0) { this.media = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x40) != 0) { this.replyMarkup = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x80) != 0) { this.entities = StreamingUtils.readTLVector(stream, context); } if ((this.flags & 0x400) != 0) { this.views = StreamingUtils.readInt(stream); } if ((this.flags & 0x8000) != 0) { this.editDate = StreamingUtils.readInt(stream); } }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Message = StringUtil.Deserialize(br); if ((Flags & 2) != 0) { Entities = (TLVector <TLAbsMessageEntity>)ObjectUtils.DeserializeVector <TLAbsMessageEntity>(br); } else { Entities = null; } if ((Flags & 4) != 0) { ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { ReplyMarkup = null; } }
public virtual void setReplyMarkup(TLAbsReplyMarkup replyMarkup) { this.replyMarkup = replyMarkup; }
public static async Task <TLAbsUpdates> SendMessageUserBot(TelegramClient userbotClient, TLAbsInputPeer peer, Language text, string username, TLAbsReplyMarkup tlAbsReplyMarkup, string lang, long?replyToMessageId, bool disablePreviewLink) { TLAbsUpdates r2; try { r2 = await userbotClient.SendMessageAsync(peer, text.Select(lang), replyMarkup : tlAbsReplyMarkup); } catch { if (string.IsNullOrEmpty(username)) { return(null); } var peerBetter = await UserbotPeer.GetPeerUserWithAccessHash(username, userbotClient); try { r2 = await userbotClient.SendMessageAsync(peerBetter, text.Select(lang), replyMarkup : tlAbsReplyMarkup); } catch { return(null); } } return(r2); }