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

TODO List #162

Open
28 of 35 tasks
AmarnathCJD opened this issue Nov 8, 2024 · 2 comments
Open
28 of 35 tasks

TODO List #162

AmarnathCJD opened this issue Nov 8, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@AmarnathCJD
Copy link
Owner

AmarnathCJD commented Nov 8, 2024

  • logging fixes (properly inherit levels across cache,mtproto,dispatcher and client loggers), color fix
  • cache some mis issue on .Min and channel ig, code below.
  • cache disable completely option
  • fix missing caches thingy often reported
  • add cache config, to impl properly
  • make sure all peers go into cache
  • Tdata to gogram session #168
  • revamp button building
  • Telethon to gogram session
  • pyrogram to gogram session
  • full Ipv6 support (dc4 ipaddressv6 is not reachable) (tg side issue)
  • file dl/ul - fix, stablize
  • fix GetDC() returning wrong dc
  • update to layer 195
  • progress bar - fix
  • memory leak maybe, fixed, killing all open connections after use (fixed)
  • progress bar, check it again
  • -404, see if its issue with dc ipaddresses diffreing from whats returned on helpGetConfig (yet to verify) #171
  • documentation website here
  • fix generated tl files, doc strings (i.e, remove htmls etc)
  • reqPqMuti mtproto internal method added for cdn dc rsa fingerprint
  • connect to cdn dc, add rsa keys.
  • cache issue channel, user objects sometimes not readded because their input peers are present
  • ForceFile option ignored (fixed)
  • update calls and group video call examples
  • Iter (dialogs|messages|history|participants) custom methods
  • fix get (dialogs|messages|history|chatmembers) methods to support the limts,etc and not only first 100/200
  • cache lockout issue on file read error (fixed)
  • (?) add logger color customisation config
  • secret chats (hmm)
  • wa (webassembly) support maybe? (ws)
  • (?) maybe unnessary - but write metadata to downloaded vids
  • implement file download from cdn dcs
  • reconnect timeout ?? (Logs Below)
  • high load update gap? (maybe need to qts pts)
@AmarnathCJD AmarnathCJD added the enhancement New feature or request label Nov 8, 2024
@AmarnathCJD AmarnathCJD self-assigned this Nov 8, 2024
@AmarnathCJD AmarnathCJD changed the title TODO #33 TODO List Nov 20, 2024
@AmarnathCJD
Copy link
Owner Author

AmarnathCJD commented Nov 30, 2024

d, err := client.GetDialogs(&tg.DialogOptions{
	Limit: 500,
})
for _, v := range d {
	switch dx := v.(type) {
	case *tg.DialogObj:
		peer, err := client.GetSendablePeer(dx.Peer)
		if err != nil {
			client.Logger.Error(err)
			continue
		}

		switch peer.(type) {
		case *tg.InputPeerChannel:
			channel, _ := client.GetChannel(peer.(*tg.InputPeerChannel).ChannelID)
			client.Logger.Info(fmt.Sprintf("Channel: %s", channel.Title))
		case *tg.InputPeerChat:
			chat, _ := client.GetChat(peer.(*tg.InputPeerChat).ChatID)
			client.Logger.Info(fmt.Sprintf("Chat: %s", chat.Title))
		}
	}
}

FIXED

@AmarnathCJD
Copy link
Owner Author

AmarnathCJD commented Dec 27, 2024

2024/12/16 09:03:36 [error] gogram [mtproto] {pbot} - reconnecting: recreating connection: creating transport: setup connection: dialing tcp: dial tcp 91.108.56.104:443: connect: connection timed out
2024/12/16 09:05:51 [error] gogram [mtproto] {pbot} - creating connection: creating transport: setup connection: dialing tcp: dial tcp 91.108.56.104:443: connect: connection timed out
2024/12/16 09:05:51 [error] gogram [mtproto] {pbot} - reconnecting: recreating connection: creating transport: setup connection: dialing tcp: dial tcp 91.108.56.104:443: connect: connection timed out

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

No branches or pull requests

1 participant