Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: please add support for receiving media #76

Open
ghost opened this issue Mar 7, 2021 · 4 comments
Open

[FEAT]: please add support for receiving media #76

ghost opened this issue Mar 7, 2021 · 4 comments
Labels
enhancement New feature or request need investigation Further information is requested

Comments

@ghost
Copy link

ghost commented Mar 7, 2021

Is your feature request related to a problem? Please describe.

There is no support of media updates. I'm receiving message of objects.GzipPacked type, which is internal type. 😞

Describe the solution you'd like

I want to receive different types depending on the message (audio, video, document), and content in bytes.

Describe alternatives you've considered

Don't see alternatives.

Additional context

I'm receiving objects.GzipPacked in CustomServerRequestHandler function

@ghost ghost added the enhancement New feature or request label Mar 7, 2021
@quenbyako
Copy link
Member

quenbyako commented Mar 8, 2021

Wait... Did you received gzipped object INSIDE rpc request?

That's REALLY weird, literally ALL rpc responses larger than 0.5kb wrapping into another gzip blob. so... gzip blob inside gzip blob??? I can't believed it.

@quenbyako quenbyako added the need investigation Further information is requested label Mar 19, 2021
@dyrkin
Copy link

dyrkin commented May 23, 2021

hi @quenbyako,
I also receive the GzipPacked object in the CustomServerRequestHandler

&objects.GzipPacked{
  Obj: &telegram.UpdatesObj{
    Updates: []telegram.Update{
      &telegram.UpdateReadChannelInbox{
      }
    }
  }
}

To reproduce it you just need to create your own channel in Telegram and send a message to it from any client.
Could you please make *objects.GzipPacked public so I can cast to it?

@azamaulanaaa
Copy link

azamaulanaaa commented Jun 11, 2021

Hai, I have similar problems. This is how to recreate one of them using bot.

Code

func (s *Service) Notify(i interface{}) bool {
  switch event := i.(type){
  case *telegram.UpdatesObj:
    for _, update := range event.Updates {
      s.pubsub.Publish(update)
    }
  default:
    log.Printf("%T\n", event)
  }
  return true
}

Message Content
Not a file, just plain text

https://raw.githubusercontent.com/azamaulanaaa/nvim-config/main/init.vim

Console

2021/06/11 10:41:13 *objects.GzipPacked

@altolstikhin
Copy link

I have similar problem. When I get message with text in customServerRequestHandler, I receive *objects.GzipPacked in method parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need investigation Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants