Example #1
0
func (t *RpcError) Write(proto tl.Encoder) (err error) {
	err = proto.WriteInt(t.ErrorCode)
	if err != nil {
		return
	}
	err = proto.WriteString(t.ErrorMessage)
	return
}
Example #2
0
func (t *String) Write(proto tl.Encoder) (err error) {
	err = proto.WriteString(t.value)
	return
}