mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
fix forward mesages
This commit is contained in:
parent
7a01fa84b4
commit
a3b58d6bb0
3 changed files with 467 additions and 363 deletions
|
|
@ -7,6 +7,76 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
//[TLObject(0x708e0195)]
|
||||
//public class TLRequestForwardMessages : TLMethod
|
||||
//{
|
||||
// // Methods
|
||||
// public void ComputeFlags()
|
||||
// {
|
||||
// this.flags = 0;
|
||||
// this.flags = this.silent ? (this.flags | 0x20) : (this.flags & -33);
|
||||
// this.flags = this.background ? (this.flags | 0x40) : (this.flags & -65);
|
||||
// this.flags = this.with_my_score ? (this.flags | 0x100) : (this.flags & -257);
|
||||
// }
|
||||
|
||||
// public override void DeserializeBody(BinaryReader br)
|
||||
// {
|
||||
// this.flags = br.ReadInt32();
|
||||
// this.silent = (this.flags & 0x20) > 0;
|
||||
// this.background = (this.flags & 0x40) > 0;
|
||||
// this.with_my_score = (this.flags & 0x100) > 0;
|
||||
// this.from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
// this.id = ObjectUtils.DeserializeVector<int>(br);
|
||||
// this.random_id = ObjectUtils.DeserializeVector<long>(br);
|
||||
// this.to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
// }
|
||||
|
||||
// public override void DeserializeResponse(BinaryReader br)
|
||||
// {
|
||||
// this.Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
// }
|
||||
|
||||
// public override void SerializeBody(BinaryWriter bw)
|
||||
// {
|
||||
// bw.Write(this.Constructor);
|
||||
// this.ComputeFlags();
|
||||
// bw.Write(this.flags);
|
||||
// ObjectUtils.SerializeObject(this.from_peer, bw);
|
||||
// ObjectUtils.SerializeObject(this.id, bw);
|
||||
// ObjectUtils.SerializeObject(this.random_id, bw);
|
||||
// ObjectUtils.SerializeObject(this.to_peer, bw);
|
||||
// }
|
||||
|
||||
// // Properties
|
||||
// public bool background { get; set; }
|
||||
|
||||
// public override int Constructor
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return 0x708e0195;
|
||||
// }
|
||||
// }
|
||||
|
||||
// public int flags { get; set; }
|
||||
|
||||
// public TLAbsInputPeer from_peer { get; set; }
|
||||
|
||||
// public TLVector<int> id { get; set; }
|
||||
|
||||
// public TLVector<long> random_id { get; set; }
|
||||
|
||||
// public TLAbsUpdates Response { get; set; }
|
||||
|
||||
// public bool silent { get; set; }
|
||||
|
||||
// public TLAbsInputPeer to_peer { get; set; }
|
||||
|
||||
// public bool with_my_score { get; set; }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
[TLObject(1888354709)]
|
||||
public class TLRequestForwardMessages : TLMethod
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue