Coder Social home page Coder Social logo

telesharp's Introduction

Mojtaba Tajik - Software Engineer\Security Researcher

Hello! 👋 I'm Mojtaba Tajik, a Software Engineer and Security Researcher passionate about dissecting the internals of existing systems, refining them, and using those insights to design more robust solutions.

telesharp's People

Contributors

fel0ny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

telesharp's Issues

TeleBot Lib fails when a message has been edited

When an already processed message to a bot made with your library is being edited, I get a full blown exception, and cannot continue since the message will now block all other messages:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei TeleBot.TeleBot.<>c.<PollMessages>b__12_1(Message d)
   bei System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
   bei System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   bei TeleBot.TeleBot.<PollMessages>d__12.MoveNext()

Can you try to take a look? Thanks!

Phone banned after login in

`var client = NewClient("session" + Properties.Settings.Default.NumberToAuthenticate);

        await client.ConnectAsync();

        var estaRegistrado = await client.IsPhoneRegisteredAsync(Properties.Settings.Default.NumberToAuthenticate);
        if (!estaRegistrado)
        {
            throw new Exception("账号没注册");
        }

        if (!client.IsUserAuthorized())
        {
            var hash = await client.SendCodeRequestAsync(Properties.Settings.Default.NumberToAuthenticate);

            //等待logincode

            Console.WriteLine("Input CodeToAuthenticate you received in client");
            Console.WriteLine("CodeToAuthenticate>");
            string code =  Console.ReadLine();

            TLUser user = null;
            try
            {
                user = await client.MakeAuthAsync(Properties.Settings.Default.NumberToAuthenticate, hash, code);
            }
            catch (CloudPasswordNeededException ex)
            {
                var password = await client.GetPasswordSetting();
                //var password_str = PasswordToAuthenticate;

                //user = await client.MakeAuthWithPasswordAsync(password, password_str);
            }
            catch (InvalidPhoneCodeException ex)
            {
                throw new Exception("CodeToAuthenticate is wrong in the app.config file, fill it with the code you just got now by SMS/Telegram",
                                    ex);
            }
        }`

It will be banned after login in with nothing to do .
Any problem?

NuGet package not in sync with Repo?

It appears that the namespaces as well as the classes and method names are not the same between GitHub and the NuGet package - are we missing a release here?

BR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.